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 ago174 downloads
1.0-373 years ago20 downloads
1.0-363 years ago15 downloads
1.0-353 years ago11 downloads
1.0-313 years ago(revision: 5)15 downloads
1.0-163 years ago1,120 downloads
1.0-143 years ago(revision: 6)497 downloads
1.0-134 years ago(revision: 2)1,097 downloads
1.0-124 years ago94 downloads
1.0-114 years ago22 downloads
1.0-15 years ago5,311 downloads
0.1-15 years ago(revision: 2)86 downloads

Dependencies

lua >= 5.1

Dependency for

copas-ev, layeredata, layeredata, petrisport

Manifests