async
defines an asynchronous function
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.
Related Katas
function API
function.length
(as introduced in ES1)function.bind()
function.length
(with ES5 features)function.length
(with ES6 features)function.name
Arrow functions
- basics
- function binding
Async Function
- basics
Difficulty Level
INTERMEDIATE
First Published
9 June 2017
Stats
7 tests to solve