Created
March 4, 2017 00:17
-
-
Save kg/5ff83335e763df8fcd9d9d19a7195b7f 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
function PromiseResolver () { | |
var self = this; | |
this.startedWhen = null; | |
this.resolve = null; | |
this.reject = null; | |
this.promise = new Promise( | |
function (resolve, reject) { | |
self.resolve = resolve; | |
self.reject = reject; | |
} | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment