suspend()
Suspends execution of the receiver task.
Declaration
func suspend() -> BoolReturn 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.