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-407 years ago304 downloads
1.0-377 years ago56 downloads
1.0-367 years ago51 downloads
1.0-357 years ago47 downloads
1.0-317 years ago(revision: 5)51 downloads
1.0-168 years ago1,156 downloads
1.0-148 years ago(revision: 6)608 downloads
1.0-138 years ago(revision: 2)1,163 downloads
1.0-128 years ago130 downloads
1.0-118 years ago58 downloads
1.0-19 years ago5,389 downloads
0.1-19 years ago(revision: 2)122 downloads

Dependencies

lua >= 5.1

Dependency for

copas-ev, layeredata, layeredata, petrisport

Manifests