can be created by putting async
before
- a function expression
- a function declaration
- an arrow function
- an object method
the return value
- is always a Promise
- wraps the return value in a Promise
- is a rejected Promise when the async function throws
Links
A short description of async function.
The actual chapter about `async`, you need to dive in from here.