3 ms·
I've described what's usually known as asymmetric coroutines or semicoroutines. "Asymmetric" because [as claimed by Lua manual at least] there are two separate
by zvrba 13y ago
I've described what's usually known as asymmetric coroutines or semicoroutines. "Asymmetric" because [as claimed by Lua manual at least] there are two separate calls for control transfer (yield and resume). Generators are less powerful.
See http://www.lua.org/pil/9.1.html http://www.lua.org/pil/9.1.html