lib/index.js
function runDone(item, resolved, res) {
	// Adjust state of lock
	this.running--;
	if (this.locked) this.locked = false;

	// Resolve/reject promise
	item.deferred[resolved ? 'resolve' : 'reject'](res);

	// Run queue again
	runQueue.call(this);
}
function runDone(item, resolved, res) {
	// Adjust state of lock
	this.running--;
	if (this.locked) this.locked = false;

	// Resolve/reject promise
	item.deferred[resolved ? 'resolve' : 'reject'](res);

	// Run queue again
	runQueue.call(this);
}
function runDone ( item , resolved , res ) { // Adjust state of lock this . running -- ; if ( this . locked ) this . locked = false ; // Resolve/reject promise item . deferred [ resolved ? 'resolve' : 'reject' ] ( res ) ; // Run queue again runQueue . call ( this ) ; }
Run complete.
Update state, resolve deferred promise, and run queue again.
@param {Object} - Queue item
@param {boolean} - `true` if function resolved, `false` if rejected
@param {*} - Result of function (resolve value or reject reason)
@returns {undefined}
Run complete . Update state resolve deferred promise and run queue again .