Function

sleep

Synopsis

sleep(int): int

Area
Runtime\PS\Core\Sleep\sleepareas

Description

sleep pauses the script for $seconds and returns 0. A negative count throws, as it does in php. The wait ends early, still returning 0, when the script runs out of time or the client it answers goes away.

Usage

$value = sleep($arguments);
$fn = sleep(...);

See also