Created
September 6, 2018 07:58
-
-
Save JCloudYu/ddbfb95b843e3dfdb9cadc6f0fd35205 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
(()=>{ | |
"use strict"; | |
module.exports = ()=>{ | |
let resolve, reject; | |
let promise = new Promise((rs, rj)=>{resolve=rs; reject=rj;}); | |
promise.trigger = {resolve, reject}; | |
return promise; | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment