lua-users home
lua-l archive

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


Copas Timer is a module that adds a timer capability to the Copas scheduler. It provides the same base functions step and loop as Copas (it actually replaces them) except that it will also check for (and run) timers expiring and run background workers if there is no IO or timer to handle. It also adds methods to allow for a controlled exit from the loop.

As an optional component an 'eventer' is available to dispatch events as background tasks in Copas Timer.

 

Release 0.4.3 updates:

- eventer.decorate() function now protects access to events table so invalid events throw an error

- fixed bug in timer errorhandler function

 

Available through LuaRocks (some lead-time may be required while it is being added to the repository), or from https://github.com/Tieske/CopasTimer

 

Documentation is here; http://tieske.github.com/CopasTimer/

 

Thijs