Created
September 21, 2016 21:17
-
-
Save littledan/6578a99c2deed7d83143c42bcaab2387 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; | |
var promise = new Promise(r => resolve = r); | |
async function foo(i) { | |
if (i > 100000) return promise; | |
return foo(i+1); | |
} | |
foo(0); | |
resolve(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment