ES6 Generators Deliver Go Style Concurrency (2013)
swannodette.github.io
swannodette.github.io
The TypeScript compilation you mention likely has many concurrently running tasks, just not in parallel (modulo the I/O thread pool as you mention).
It seems that with Async/Await, Generators are not as useful and are more niche. Am I wrong?
Basically by using generators for co-routines, you preclude yourself from some use-cases that generators normally provide.
> Generators are not as useful and are more niche. Am I wrong?
I would say that generators are more general, and async/await actually more specific to a single use-case.
If you want threads, then make a syntax or API for them rather than implement hacks nobody will want to deal with later.