idle

Put the current instance into an IDLE state.

Syntax

status = idle ;

Arguments

None

Return Value

str status

Exceptions

%ARGUMENT : Invalid arguments. Usage: status = idle ;

Description

The idle() function is like the sleep() function with an infinite sleep time. In general, if you are using the idle() function, you should probably be using return() instead. DO NOT USE IDLE AS A SUBSTITUTE FOR return!!! A return from a method which was called from an incoming message will also put the instance back in a IDLE state.

Examples

To execute the example below, press or modify the example to try different variations.

Related Links

None