Method sleep()
- Method
sleep
voidsleep(int|floats,void|intabort_on_signal)- Description
This function makes the thread stop for
sseconds.Only signal handlers can interrupt the sleep, and only when
abort_on_signalis set. If more than one thread is running the signal must be sent to the sleeping thread. Other callbacks are not called during sleep.If
sis zero then this thread will yield to other threads but not sleep otherwise. Note that Pike yields internally at regular intervals so it's normally not necessary to do this.- See also