Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active October 9, 2017 13:15
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 rafaelmaeuer/924584d856e0fd897e2e287824da3eaf to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/924584d856e0fd897e2e287824da3eaf to your computer and use it in GitHub Desktop.
(async function loop() {
for (let i = 0; i <= 10; i++) {
await new Promise(resolve => setTimeout(resolve, Math.random() * 1000));
console.log(i);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment