Skip to main content
Version: 5.7.0

Sleep

tip

Note that the max time you can sleep for is the timeout value of the script it is called from. If you ask to sleep for longer than that, it automatically caps the sleep time to the script timeout value.

Wait for a current thread for a specified time. It makes the cloud code script sleep for the requested amount of time.

Method Parameters

ParameterDescription
waitingTimeTime in millis.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab