Skip to content

Instantly share code, notes, and snippets.

@Jonahss
Created May 25, 2018 21:48
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 Jonahss/68df67b58b84634e1ee90a3b517b16be to your computer and use it in GitHub Desktop.
Save Jonahss/68df67b58b84634e1ee90a3b517b16be to your computer and use it in GitHub Desktop.
uncertain-await
async function main () {
for (let i = 0; i < 100; i++) {
console.log(i)
await new Promise(() => {})
}
}
main()
@Jonahss
Copy link
Author

Jonahss commented May 25, 2018

aha. This is the same as nodejs/node#19929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment