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

15 lines
358 B
Markdown

# Promises API
Let's meet more functions and methods for promises.
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