Instance Method


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


- (void)cancel;


The semantics of this method are the same as those used for NSOperation. This method sets state information in the receiver that is then reflected by the cancelled property. Threads that support cancellation should periodically call the cancelled method to determine if the thread has in fact been cancelled, and exit if it has been.

For more information about cancellation and operation objects, see NSOperation.

See Also

Stopping a Thread

+ sleepUntilDate:

Blocks the current thread until the time specified.

+ sleepForTimeInterval:

Sleeps the thread for a given time interval.

+ exit

Terminates the current thread.