3 ms·
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 reall
by qudat 3y ago
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/continuation
- https://github.com/thefrontside/effection/tree/v3 https://github.com/thefrontside/effection/tree/v3
- https://github.com/neurosnap/starfx 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 https://youtu.be/uRbqLGj_6mI?si=XI0JNMKMoO2VHMvM