JavaScript Async Functions
Posté 2023-05-18 20:45:22
0
7KB
Async functions can contain zero or more await
expressions. Await expressions make promise-returning functions behave as though they're synchronous by suspending execution until the returned promise is fulfilled or rejected. The resolved value of the promise is treated as the return value of the await expression. Use of async
and await
enables the use of ordinary try
/ catch
blocks around asynchronous code.
Rechercher
Catégories
- Arts
- Business
- Computers
- Jeux
- Health
- Domicile
- Kids and Teens
- Argent
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Lire la suite
Фортуна. Fortuna. (2021)
Фортуна (6 лет) живет со своей матерью в безымянном пригороде. Она проводит время с двумя...
Warrior. (2011)
The youngest son of an alcoholic former boxer returns home, where he's trained by his father for...
Python TypeError
The Python TypeError is an exception that occurs when the data type of an object in an...
Жизнь прекрасна. Life Is Beautiful. (1997)
Во время Второй мировой войны из Италии в концлагерь были отправлены евреи - отец с маленьким...
The most expensive jewelry in the world
Beautiful, alluring, mystical, mysterious... precious stones have always had a special power over...