[ Operating System | Reference Manual | Alphabetic Index ]
The execution of ECLiPSe is suspended for Seconds number of seconds.
- Positive number (integer or float).
sleep/1 causes the the suspension of execution of ECLiPSe for Seconds
number of seconds.
However, ECLiPSe will respond to interrupts while asleep. On most
operating systems, interrupts will terminate the sleep prematurely.
Modes and Determinism
- (4) instantiation fault
- Seconds is uninstantiated.
- (5) type error
- Seconds is not an integer or float.
% short sleep
yes. % "yes" appears after 0.3 seconds.
% long sleep
yes. % "yes" appears after 2 years.
alarm / 1, pause / 0