lib/promise.js
function () {
            if (!this.__fired) {
                this.__fired = true;
                var self = this;
                nextTick(function () {
                    var cbs = self.__errors.length ? self.__errorCbs : self.__cbs,
                        len = cbs.length, i,
                        results = self.__errors.length ? self.__errors : self.__results;
                    for (i = 0; i < len; i++) {
                        spreadArgs(cbs[i], [results]);
                    }
                });
            }
        }
function () {
            if (!this.__fired) {
                this.__fired = true;
                var self = this;
                nextTick(function () {
                    var cbs = self.__errors.length ? self.__errorCbs : self.__cbs,
                        len = cbs.length, i,
                        results = self.__errors.length ? self.__errors : self.__results;
                    for (i = 0; i < len; i++) {
                        spreadArgs(cbs[i], [results]);
                    }
                });
            }
        }
function ( ) { if ( ! this . __fired ) { this . __fired = true ; var self = this ; nextTick ( function ( ) { var cbs = self . __errors . length ? self . __errorCbs : self . __cbs , len = cbs . length , i , results = self . __errors . length ? self . __errors : self . __results ; for ( i = 0 ; i < len ; i ++ ) { spreadArgs ( cbs [ i ] , [ results ] ) ; } } ) ; } }
Resolves the promise
@private
Resolves the promise