Languages
[Edit]
EN

TypeScript - async for

12 points
Created by:
Root-ssh
178260

In TypeScript it is possible to create async for loop in following way.

1. Async for example

Edit

Example:

Compiling and running:

Output:

Run it online here

Note: to use async / await --target ES6 parameter is necessary during compilation.

See also

Edit
  1. TypeScript - how to compile ts file to js

References

Edit
  1. async / await - Microsoft Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

TypeScript

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join