Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nafeu/af7f70bdf3a16bd3e1814ac64aa68e6c to your computer and use it in GitHub Desktop.
Save nafeu/af7f70bdf3a16bd3e1814ac64aa68e6c to your computer and use it in GitHub Desktop.
async function main() {
console.log('1 | print immediately');
console.log(await delay(() => '2 | print after one second', 1000));
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment