en.javascript.info/8-async/06-async-await/article.md
Ilya Kantor 5d1813b115 up
2017-05-22 14:18:43 +03:00

302 B

Async/await

Keywords async and await provide a more elegant way to write the code using promises.

Async functions

The async function is like a regular one, but it wraps a returned value in a Promise.

Nowadays, promises are de-facto standard for asynchronous actions, when we need to