lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I needed a C++ coroutine manager, and one of the beneficial side
effects was that it was easy to add support for go style channel based
patterns, this is the result test where channels are implemented on
top of the coroutinemanager class:

Lua code for the test are at the bottom of the file, the first part is
the implementation.


On Sat, Aug 31, 2013 at 5:17 PM, Alexey Baskakov
<> wrote:
> Hi, Marek!
>> Lua supports cooperative coroutines out of the box, which is great.
>> Unfortunately Lua lacks built-in communication primitives. To fill the
>> void I've implemented Go style channels in pure Lua.
> That was not a comprehensive void, actually :)
> Have a look at
> You could find it interesting.
> Alexey.