4 ms·
Coroutines are just one-off continuations (ie you can only run them once).
by infinite8s 17y ago
Coroutines are just one-off continuations (ie you can only run them once).
- silentbicycle 17y agoRight. They can be used as one-shot continuations. It doesn't cover all use cases, but a good subset of them. There's a patch by Mike Pall to add coroutine copying for simulating multi-shot continuations, though.