AsyncAwait
suggest changeIntroduction
Async/await is a pair of keywords that lets you write asynchronous code in a procedural style, without callbacks (callback hell) or a long promise chain (.then().then().then()).
await suspends an async function until a promise settles. async declares such a function, which always returns a promise.
Async/await has been available by default since Node.js 7.6.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents