en.javascript.info/8-async/05-async-await/article.md
Ilya Kantor 0576ea79d8 up
2017-04-21 09:34:49 +02:00

11 lines
302 B
Markdown

# 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