Created
April 27, 2018 04:49
-
-
Save rohanBagchi/9969652ad97c209402ba81b185caafc9 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 resolve = function (value) { | |
| if (status !== PENDING) return; | |
| try { | |
| success_callbacks.forEach(cb => cb.call(null, value)); | |
| success_callbacks = []; | |
| status = RESOLVED; | |
| } catch (e) { | |
| this.reject(e); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment