Created
April 27, 2018 04:50
-
-
Save rohanBagchi/57e3078cf15c7f2fea6d3966d69e9137 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reject = function (err) { | |
if (status !== PENDING) return; | |
error_callbacks.forEach(cb => cb.call(null, err)); | |
error_callbacks = []; | |
status = REJECTED; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment