Re:Why Would Anyone Need JavaScript Generator Functions?
by pgorczak on Monday November 07, 2022 @10:09AM
(#33506764)
Async generators similarly open up different ways to program complex / multi step user interactions. Instead of creating “state machine” objects that mutate on every input, you can have async functions aka coroutines that iterate over user inputs, making the flow of an interaction much more explicit.
[ Parent
| on HN ]
There are no comments on this comment yet.