Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > sleep()

 

sleep()

Syntax

sleep(timeInMilliseconds)

Description

Multiuser Server server-side command; pauses the current thread (the thread that issues the sleep() command) to allow other threads to run. The thread is placed in sleep mode for the given number of milliseconds. If there is no timeInMilliseconds parameter, the thread sleeps indefinitely. To delete a permanently sleeping thread, use the forget() command on the thread and then set it to 0.

Example

This statement sleeps the thread that issues the statement for 1.5 seconds:

sleep(1500)

See also

forget (thread)