Have you considered that generators are basically state machines?
Re:Faster JavaScript Calls
by BenoitEssiambre on Monday February 15, 2021 @05:52PM
(#26148679)
Yes, but I meant not an additional state machine and caching layer. Promise based async/await also have the generators.
https://es.discourse.group/t/callback-based-simplified-async...