v0.13.8

C_Timer.NewTimer

functionimplementedavailable in: camelot

Schedules a cancelable timer.

signaturewowlua
function C_Timer.NewTimer(    seconds: number,    callback: TickerCallback): TickerCallback

Parameters

nametypedescription
secondsnumberTime in seconds between each iteration.
callbackTickerCallbackCallback 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 ↗.