queuedFetch(url, config) {
        var that = this;
        var p = new Promise((okay, fail) => {
            function doIt() {
                that.inFlight++;
                that.fetchRetry(url, 1000, 10, config)
                    .then((d) => {
                        that.inFlight--;
                        okay(d);
                    })
                    .catch((e) => {
                        that.inFlight--;
                        fail(e);
                    });
            }

            function checkIt() {
                if (that.inFlight > 3) {
                    window.setTimeout(checkIt, 250);
                } else {
                    doIt();
                }
            }

            checkIt();
        });
        return p;
    }
// overload errors. This function only allows to have a certain amount of pending ajax request running.
overload errors. This function only allows to have a certain amount of pending ajax request running.
overload errors . This function only allows to have a certain amount of pending ajax request running .
queuedFetch(url, config) {
        var that = this;
        var p = new Promise((okay, fail) => {
            function doIt() {
                that.inFlight++;
                that.fetchRetry(url, 1000, 10, config)
                    .then((d) => {
                        that.inFlight--;
                        okay(d);
                    })
                    .catch((e) => {
                        that.inFlight--;
                        fail(e);
                    });
            }
            function checkIt() {
                if (that.inFlight > 3) {
                    window.setTimeout(checkIt, 250);
                } else {
                    doIt();
                }
            }
            checkIt();
        });
        return p;
    }
queuedFetch ( url , config ) { var that = this ; var p = new Promise ( ( okay , fail ) => { function doIt ( ) { that . inFlight ++ ; that . fetchRetry ( url , 1000 , 10 , config ) . then ( ( d ) => { that . inFlight -- ; okay ( d ) ; } ) . catch ( ( e ) => { that . inFlight -- ; fail ( e ) ; } ) ; } function checkIt ( ) { if ( that . inFlight > 3 ) { window . setTimeout ( checkIt , 250 ) ; } else { doIt ( ) ; } } checkIt ( ) ; } ) ; return p ; }
overload errors.
overload errors .