Expand/Shrink

nopoll_sleep

Definition: include nopoll.e

nopoll_sleep(integer microseconds)
Description: Portable subsecond sleep.

Suspends the calling thread during the provided amount of time.

microseconds: The amount of time to wait.

There is no particular benefit over using this instead of the builtin sleep(), although the units are different.
Note that, on Windows, it won’t actually sleep at all unless you pass it at least 1 millisecond, ie invoke nopoll_sleep(1000) or higher.
See Also: nopoll_conn_flush_writes, nopoll_conn_read, nopoll_conn_wait_until_connection_ready