lib/queue.js
function() {
        if(!this._isStopped) {
            return;
        }

        this._isStopped = false;
        var processedBuffer = this._processedBuffer;
        if(processedBuffer.length) {
            this._processedBuffer = [];
            nextTick(function() {
                while(processedBuffer.length) {
                    processedBuffer.shift()();
                }
            });
        }

        this._hasPendingTasks() && this._scheduleRun();
    }
function() {
        if(!this._isStopped) {
            return;
        }

        this._isStopped = false;
        var processedBuffer = this._processedBuffer;
        if(processedBuffer.length) {
            this._processedBuffer = [];
            nextTick(function() {
                while(processedBuffer.length) {
                    processedBuffer.shift()();
                }
            });
        }

        this._hasPendingTasks() && this._scheduleRun();
    }
function ( ) { if ( ! this . _isStopped ) { return ; } this . _isStopped = false ; var processedBuffer = this . _processedBuffer ; if ( processedBuffer . length ) { this . _processedBuffer = [ ] ; nextTick ( function ( ) { while ( processedBuffer . length ) { processedBuffer . shift ( ) ( ) ; } } ) ; } this . _hasPendingTasks ( ) && this . _scheduleRun ( ) ; }
Starts processing of queue
Starts processing of queue