Add C_Timer module with functions for scheduling timers and tickers
This commit is contained in:
16
C_Timer.lua
16
C_Timer.lua
@@ -5,14 +5,24 @@
|
||||
|
||||
---@class C_Timer
|
||||
C_Timer = {
|
||||
---Schedules a timer.
|
||||
---@param seconds number
|
||||
---@param callback function
|
||||
---@return nil
|
||||
After = function(seconds, callback) end,
|
||||
|
||||
---Schedules a timer that can be canceled.
|
||||
---@param seconds number
|
||||
---@param callback function
|
||||
---@return Timer
|
||||
---@overload fun(seconds: number, callback: function, iterations: number)
|
||||
NewTimer = function(seconds, callback) end,
|
||||
|
||||
---Schedules a repeating timer that can be canceled.
|
||||
---@param seconds number
|
||||
---@param callback function
|
||||
---@param iterations number
|
||||
---@return Timer
|
||||
---@overload fun(seconds: number, callback: function, iterations: number)
|
||||
NewTicker = function(seconds, callback) end,
|
||||
NewTicker = function(seconds, callback, iterations) end,
|
||||
}
|
||||
---@diagnostic disable: missing-return, lowercase-global
|
||||
---@meta
|
||||
|
Reference in New Issue
Block a user