Created
April 29, 2023 01:06
-
-
Save valterbarros/4e95fdb85d0697112fb6ac082e30197d to your computer and use it in GitHub Desktop.
This file contains 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
class PromiseResolver { | |
constructor() { | |
this.promise_ = new Promise((resolve, reject) => { | |
this.resolve_ = resolve; | |
this.reject_ = reject; | |
}) | |
} | |
get promise() { return this.promise_ } | |
get resolve() { return this.resolve_ } | |
get reject() { return this.reject_ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment