top | item 22905226

(no title)

bodhi | 5 years ago

The way the generators appear to work reminds me a lot of Concur: 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!

discuss

order

leetrout|5 years ago

Which part looks like a nightmare to you?

I wasn’t quiet sure what you mean by “when does yield return”?

bodhi|5 years 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.