Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created January 10, 2019 01:23
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 hoorayimhelping/b51a9299f888bac9ec21fafb0f84522c to your computer and use it in GitHub Desktop.
Save hoorayimhelping/b51a9299f888bac9ec21fafb0f84522c to your computer and use it in GitHub Desktop.
const simpleAsyncOperation = () => Promise.resolve();
for (var i = 0; i < 10; i++) {
simpleAsyncOperation().then(() => {
console.log(i);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment