Causes the currently executing thread to sleep for the specified number of milliseconds. Similar to Thread.sleep()
in Java.
Syntax
sleep(millis time)
Examples
You need to run a request every 10 seconds.
req = getHTTPRequester(url);
keepTesting = true;
while (keepTesting) {
req.doRequest();
keepTesting = req.contentLength == 0;
if (keepTesting) sleep(10000);
}
content = req.getContent();