15 lines
358 B
Markdown
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
|