cothread is a library for cooperative multithreading in Lua using coroutines. It is organized as a set o modules that provides different functionalities incrementally. Such functionalities can be in the form of module extensions or extra modules with utility functions and objects. The implementation and API is still a work in progress and will likely change a lot.


You can install CoThread through LuaRocks using the following command.

   luarocks install cothread

This library is provided as free software under the terms of the MIT License, which are the same terms of the Lua License.

For download see the list of released packages.


This project was created by Renato Maia.

Copyright (C) 2004-2014 Tecgraf, PUC-Rio

This project is currently being maintained by Tecgraf at PUC-Rio.