mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(waitFor): type corrections
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
---Yields the current thread until a non-nil value is returned by the function.
|
||||
---@generic T
|
||||
---@param cb fun(): T?
|
||||
---@param cb fun(): T
|
||||
---@param errMessage string?
|
||||
---@param timeout number? Error out after `~x` ms. Defaults to 1000, unless set to `false`.
|
||||
---@return T?
|
||||
---@param timeout? number | false Error out after `~x` ms. Defaults to 1000, unless set to `false`.
|
||||
---@return T
|
||||
---@async
|
||||
function lib.waitFor(cb, errMessage, timeout)
|
||||
local value = cb()
|
||||
|
||||
Reference in New Issue
Block a user