This commit is contained in:
Ilya Kantor 2017-04-21 09:34:49 +02:00
parent 7a51c05ded
commit 0576ea79d8
18 changed files with 375 additions and 109 deletions

View file

@ -0,0 +1,15 @@
# 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