Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
NodeJS Async-Await Example
async fooBarBaz(arg) {
try {
const fooResponse = await foo(arg+1);
const barResponse = await bar(arg+2);
const bazResponse = await baz(arg+3);
return bazResponse;
} catch (error) {
return Error(error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment