void sleep(u64 time)
Pauses the execution of the current thread for the specified time-out interval.
The duration of the pause in milliseconds.
A value of 0 allows the thread to yield its remaining time slice to any ready-to-run threads.
0
If no other threads are ready, the function returns immediately, and the thread resumes execution.
Sleep prevents the script from returning, so no other callbacks can run until it completes because only one thread may access a Lua state at a time.
Last updated 22 days ago