6 ms·
The way the generators appear to work reminds me a lot of Concur: https://github.com/ajnsit/concur-documentation https://github.com/ajnsit/concur-documentation
by bodhi 6y ago
The way the generators appear to work reminds me a lot of Concur: https://github.com/ajnsit/concur-documentation https://github.com/ajnsit/concur-documentation
But controlling or understanding the control flow in Crank generator components, ie. when does ‘yield‘ return, looks like a bit of a nightmare!
- leetrout 6y agoWhich part looks like a nightmare to you? I wasn’t quiet sure what you mean by “when does yield return”?
- bodhi 6y ago“Nightmare” is too strong, but it looks from the simple example that generators are managed by jumping between coroutines, and one of the coroutines is the renderer? (Sorry, I’m on my phone and probably not conveying my point very well) I’d be interested in seeing this hooked up to Xstate.