Created
October 5, 2017 22:29
-
-
Save silesky/bcb0cf54b0f17d5f1659af9e1df55b56 to your computer and use it in GitHub Desktop.
async_blog_boom.js
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
const timer = async () => { // function* -> async | |
await promiseTimeout(1000) // yield -> await | |
await promiseTimeout(2000) | |
await promiseTimeout(3000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment