-
-
Save bmeck/15b0c96e119f7cf26273 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
var af,bf; | |
var a = new Promise(f=>af=f) | |
var b = new Promise(f=>bf=f) | |
af(b); | |
bf(a); | |
a.then( | |
_ => console.log('af',_), | |
_ => console.log('ar',_) | |
); | |
b.then( | |
_ => console.log('bf',_), | |
_ => console.log('br',_) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment