Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 1, 2020 11:05
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 velotiotech/ca7d4ce8c0e0e7398700ba612c543f06 to your computer and use it in GitHub Desktop.
Save velotiotech/ca7d4ce8c0e0e7398700ba612c543f06 to your computer and use it in GitHub Desktop.
nodejs-eg
async function asyncFun() {
try {
const result = await promise;
} catch(error) {
console.log(error);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment