AceTimer-3.0

From WowAce Wiki

Jump to: navigation, search

Contents

API

:ScheduleTimer(callback, delay, arg)

callback (function or string) 
direct function ref or method name in our object for the callback
delay (number) 
delay for the timer (must be integer)
arg (variant) 
any argument to be passed to the callback function

Returns a handle to the timer, to be used for canceling it

:ScheduleRepeatingTimer(callback, delay, arg)

callback (function or string) 
direct function ref or method name in our object for the callback
delay (number) 
delay for the timer (must be integer)
arg (variant) 
any argument to be passed to the callback function

Returns a handle to the timer, to be used for canceling it

:CancelTimer(handle)

handle (string) 
handle returned from ScheduleTimer or ScheduleRepeatingTimer
silent (boolean) 
If set to true, do not error if the timer does not exist or is already canceled. Defaults to false

Cancels a timer with the given handle, registered by the same 'self' as given in ScheduleTimer. Returns true if successful

:CancelAllTimers()

Cancels all timers registered to a given 'self'

Personal tools
Support the Site