Skip to content

Instantly share code, notes, and snippets.

@silesky
Last active October 10, 2017 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silesky/ceb5e25f9bdb389778e122be659f782e to your computer and use it in GitHub Desktop.
Save silesky/ceb5e25f9bdb389778e122be659f782e to your computer and use it in GitHub Desktop.
blog_async_promisetimeout
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