Skip to content

Instantly share code, notes, and snippets.

@staskuban
Last active February 10, 2021 20:23
Show Gist options
  • Save staskuban/88de83feb76a26952b6f7234fa2ac6b1 to your computer and use it in GitHub Desktop.
Save staskuban/88de83feb76a26952b6f7234fa2ac6b1 to your computer and use it in GitHub Desktop.
async f1 () {
try {
await func();
alert('f1 CALLED');
} catch (e){
console.error(e)
}
}
async f2 () {
await func().catch(console.error);
alert('f2 called');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment