diff options
author | Waqas Hussain <waqas20@gmail.com> | 2013-10-30 17:44:42 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2013-10-30 17:44:42 -0400 |
commit | 792398b07ef11702ddc6b842744840969e48b0e6 (patch) | |
tree | ff11c1b8dae686f95c1a2222bda607fd58b8ef9f /core/moduleapi.lua | |
parent | 86e7a96d76ab04d32f92beace38ab0593e8d1b02 (diff) | |
download | prosody-792398b07ef11702ddc6b842744840969e48b0e6.tar.gz prosody-792398b07ef11702ddc6b842744840969e48b0e6.zip |
util.timer: Updated to use util.indexedbheap to provide a more complete API. Timers can now be stopped or rescheduled. Callbacks are now pcall'd. Adding/removing timers from within timer callbacks works better. Optional parameter can be passed when creating timer which gets passed to callback, eliminating the need for closures in various timer uses. Timers are now much more lightweight.
Diffstat (limited to 'core/moduleapi.lua')
0 files changed, 0 insertions, 0 deletions