Contents

suspend()

Suspends execution of the receiver task.

Declaration

func suspend() -> Bool

Return Value

true if the receiver was successfully suspended, false otherwise.

Discussion

Multiple suspend() messages can be sent, but they must be balanced with an equal number of resume() messages before the task resumes execution.

See Also

Running and Stopping