coronest

Coroutines that allow nesting

$ luarocks install coronest

Coroutines are a powerful notion to suspend and resume execution of
lightweight threads. They can be used for instance for scheduling,
or for iteration.

When mixing these two uses, a problem arises: there is no way to specify
which `coroutine.resume` should intercept a `coroutine.yield`.

This module provides a thin wrapper around the standard `coroutine`
module to allow the definition of complex behaviors with nested
coroutines.

Versions

1.0-403 years ago203 downloads
1.0-373 years ago24 downloads
1.0-363 years ago19 downloads
1.0-353 years ago15 downloads
1.0-313 years ago(revision: 5)19 downloads
1.0-164 years ago1,124 downloads
1.0-144 years ago(revision: 6)501 downloads
1.0-134 years ago(revision: 2)1,101 downloads
1.0-124 years ago98 downloads
1.0-114 years ago26 downloads
1.0-15 years ago5,323 downloads
0.1-16 years ago(revision: 2)90 downloads

Dependencies

lua >= 5.1

Dependency for

copas-ev, layeredata, layeredata, petrisport

Manifests