Timeout
MSK.Timeout.Set
Set a new asyncron timeout
Parameters
miliseconds - number
- Time to wait
cb - function
- Callback Function
MSK.Timeout.Clear
Clears the given timeout
Parameters
timeout - number
- Timeout ID
MSK.Timeout.Await
Calls a function repeatedly until it receives a non-nil value, or it times out. The function result is then returned.
Thanks to ox_lib for this amazing function!
Parameters
miliseconds - number
- Time to wait
cb - function
- Callback Function
errorMessage - string
- Message on error
Returns
value - ?
- The given value
Last updated