lua-users home
lua-l archive

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


Small update.

 

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.

 

Changes/fixes;

- fixed undefined behaviour when arming an already armed timer
- removed default 1 second interval, now throws an error
   if the first call to arm does not provide an interval.
- bugfix, worker could not remove itself from the worker queue
- added method copas.waitforcondition() to the timer module

 

Regards,

Thijs