Skip to content

Instantly share code, notes, and snippets.

@RoyiNamir
Created May 21, 2021 14:34
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 RoyiNamir/8267f249bb891d6524975f2f8ec225f7 to your computer and use it in GitHub Desktop.
Save RoyiNamir/8267f249bb891d6524975f2f8ec225f7 to your computer and use it in GitHub Desktop.
const p = Promise.resolve();
(async ()=> {
await p;
console.log('after:await');
})();
p.then(()=>console.log ('tick a'))
.then(()=>console.log ('tick b'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment