Node.js Async Function Best Practices.md 598 B


Title: "Node.js Async Function Best Practices" Date: 2017-12-08 11:50:08 Categories: [programming] tags: [nodejs, javascript]

Authors: sedlav

async functions let you write Promise-based code as if it were synchronous. Once you define a function using the async keyword, then you can use the await keyword within the function’s body. When the async function is called, it returns with a Promise. When the async function returns a value, the Promise gets fulfilled, if the async function throws an error, it gets rejected.

Link