Type Method

sleepForTimeInterval:

Sleeps the thread for a given time interval.

Declaration

+ (void)sleepForTimeInterval:(NSTimeInterval)ti;

Parameters

ti

The duration of the sleep.

Discussion

No run loop processing occurs while the thread is blocked.

See Also

Stopping a Thread

+ sleepUntilDate:

Blocks the current thread until the time specified.

+ exit

Terminates the current thread.

- cancel

Changes the cancelled state of the receiver to indicate that it should exit.