API C_Timer.After

From Wowpedia
Jump to: navigation, search

Creates a new timer.

C_Timer.After(duration, callback)


Number - Seconds before the timer completes
Function - What you want to execute when the timer's duration has elapsed


Creates and starts a timer that calls 'callback' after 'duration' seconds.

Even with a duration of 0 or 1 ms, the earliest the callback will be called is on the next frame.

Note that this timer cannot be cancelled and only runs for a single iteration. If you are looking for more features, use the more expansive and more expensive NewTimer or NewTicker functions instead.

Patch changes

See also