top | item 19008736

(no title)

kahoon | 7 years ago

TypeScript supports async/await pretty well (after transpilation of course).

discuss

order

vedantroy|7 years ago

I'm not sure why people (were) downvoting the parent comment.

Typescript (and normal Javascript) both support async/await very well as long as you use Babel to compile your code.

Infact, you don't even need to use Babel to compile your code because a large portion of browsers natively support async/await: https://caniuse.com/#search=async

I'm not sure why people say you need libraries that support async/await. In JS/TS, async/await are built into the language itself and most libraries utilize the Promise API, which means they also support async/await (since async/await is built on top of promises).

nick_|7 years ago

The golden touch of Anders Hejlsberg :)