mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
feat(lib/timeout) Type validation for cb function
This commit is contained in:
@@ -7,6 +7,8 @@ local CancelledTimeouts = {}
|
||||
---@param cb function
|
||||
---@return number
|
||||
xLib.timeout.setTimeout = function(msec, cb)
|
||||
xLib.verify(cb, "function", true)
|
||||
|
||||
local id <const> = TimeoutCount + 1
|
||||
|
||||
SetTimeout(msec, function()
|
||||
|
||||
Reference in New Issue
Block a user