lib/altshift/promise.js
function (error, dontThrow) {
        var self = this;

        self.isError = true;
        self._notifyAll(error);
        if (!dontThrow) {
            enqueue(function () {
                if (!self.handled) {
                    throw error;
                }
            });
        }
        return self.handled;
    }
function (error, dontThrow) {
        var self = this;

        self.isError = true;
        self._notifyAll(error);
        if (!dontThrow) {
            enqueue(function () {
                if (!self.handled) {
                    throw error;
                }
            });
        }
        return self.handled;
    }
function ( error , dontThrow ) { var self = this ; self . isError = true ; self . _notifyAll ( error ) ; if ( ! dontThrow ) { enqueue ( function ( ) { if ( ! self . handled ) { throw error ; } } ) ; } return self . handled ; }
Calling emitError will indicate that the promise failed

@param {*} value send to all resolved callbacks
@return this
Calling emitError will indicate that the promise failed