TaggedCoro

Tagged Coroutines

$ luarocks install taggedcoro

Enriches coroutines to have an associated tag
(which can be any Lua value). A call to
coroutine.yield transfers control to the nearest
enclosing coroutine.resume with the same tag.
Resuming that coroutine transfers control back
to the call to coroutine.yield.

Versions

1.0.0-13 years ago19 downloads

Dependencies

lua >= 5.2

Manifests