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-406 years ago294 downloads
1.0-376 years ago52 downloads
1.0-366 years ago47 downloads
1.0-356 years ago43 downloads
1.0-316 years ago(revision: 5)47 downloads
1.0-167 years ago1,152 downloads
1.0-147 years ago(revision: 6)604 downloads
1.0-137 years ago(revision: 2)1,159 downloads
1.0-127 years ago126 downloads
1.0-117 years ago54 downloads
1.0-18 years ago5,385 downloads
0.1-18 years ago(revision: 2)118 downloads

Dependencies

lua >= 5.1

Dependency for

copas-ev, layeredata, layeredata, petrisport

Manifests