Last active
October 10, 2017 18:42
-
-
Save silesky/ceb5e25f9bdb389778e122be659f782e to your computer and use it in GitHub Desktop.
blog_async_promisetimeout
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
const timer = asyncify(function* () { | |
yield promiseTimeout(1000) | |
yield promiseTimeout(2000) | |
yield promiseTimeout(3000) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment