mirror of
https://github.com/kikito/cron.lua.git
synced 2024-12-19 18:34:20 +00:00
Merge branch 'master' of github.com:kikito/cron.lua
This commit is contained in:
commit
983b4a8806
@ -9,7 +9,7 @@ are permitted provided that the following conditions are met:
|
|||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
this list of conditions and the following disclaimer in the documentation
|
this list of conditions and the following disclaimer in the documentation
|
||||||
and/or other materials provided with the distribution.
|
and/or other materials provided with the distribution.
|
||||||
3. Neither the name of MiddleClass nor the names of its contributors
|
3. Neither the name of cron.lua nor the names of its contributors
|
||||||
may be used to endorse or promote products derived from this software
|
may be used to endorse or promote products derived from this software
|
||||||
without specific prior written permission.
|
without specific prior written permission.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ h1. Examples of use
|
|||||||
|
|
||||||
* @cron.after(time, callback)@ will execute callback after the given amount of time units. Returns an identifier (@id@)
|
* @cron.after(time, callback)@ will execute callback after the given amount of time units. Returns an identifier (@id@)
|
||||||
* @cron.every(time, callback)@ will repeat the same action periodically. Returns an identifier (@id@)
|
* @cron.every(time, callback)@ will repeat the same action periodically. Returns an identifier (@id@)
|
||||||
* @cron.cancel(id)@ will stop a timed event from happening. It will stop a timed event from happening, or stop a periodic action.
|
* @cron.cancel(id)@ will stop a timed action from happening, and will interrupt the periodical execution of a periodic action.
|
||||||
* @cron.reset()@ removes all timed and periodic actions, and resets the time passed back to 0.
|
* @cron.reset()@ removes all timed and periodic actions, and resets the time passed back to 0.
|
||||||
* @cron.update(dt)@ is needed to be executed on the main program loop. @dt@ is the amount of time that has passed since the last iteration. When @cron.update@ is executed, cron will check the list of pending actions and execute them if needed.
|
* @cron.update(dt)@ is needed to be executed on the main program loop. @dt@ is the amount of time that has passed since the last iteration. When @cron.update@ is executed, cron will check the list of pending actions and execute them if needed.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user