News for hackers. Stuff that matters.
Re:Internals of Async / Await in JavaScript by qudat on Saturday September 02, 2023 @08:45AM (#37361018)
redux-saga maintainer here!

Before async/await, generators were the only way to express async flow control in a synchronous way. Libraries like “co” were really popular at the time.

There are some really downside to async/await which is why redux-saga continued to use generators. Even in 2023, me and a couple others are experimenting with deliminited continuations using generators as the foundation.

A couple of libraries we have built:

- https://github.com/thefrontside/continuation

- https://github.com/thefrontside/effection/tree/v3

- https://github.com/neurosnap/starfx

The last one intends to replace redux-saga using DCs.

Here’s a presentation I gave recently talking about DCs in typescript: https://youtu.be/uRbqLGj_6mI?si=XI0JNMKMoO2VHMvM

There are no comments on this comment yet.