C_Timer. NewTimer
functionimplementedavailable in: camelot
Schedules a cancelable timer.
function C_Timer.NewTimer( seconds: number, callback: TickerCallback): TickerCallbackParameters
| name | type | description |
|---|---|---|
seconds | number | Time in seconds between each iteration. |
callback | TickerCallback | Callback function to run. It will be supplied a view of the timer handle (cbObject) when invoked. The handle returned from the function and the one supplied to the callback are distinct objects that both reference a shared state. |
Returns
cbObject · TickerCallback · Timer handle with :Cancel(), :IsCancelled() and :Invoke() methods.
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (UITimer system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.