3 ms·
I guess when you call an entry point the second time it restores the existing context at the point of the previous yield. So you have mix of shared state (class
by BeeOnRope 8y ago
I guess when you call an entry point the second time it restores the existing context at the point of the previous yield. So you have mix of shared state (class members) and local state between the various entry point. Just a guess though.
- AndyKelley 8y agoIf the local state was accessed across a suspend point that would be undefined behavior. So it would have to be spilled into the coroutine frame. So it would be the same as a class.