---
title: suspend()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/process/suspend()
---

# suspend()

Suspends execution of the receiver task.

## Declaration

```swift
func suspend() -> Bool
```

## Return Value

Return Value true if the receiver was successfully suspended, false otherwise.

## Discussion

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

- [run()](foundation/process/run().md)
- [interrupt()](foundation/process/interrupt().md)
- [resume()](foundation/process/resume().md)
- [terminate()](foundation/process/terminate().md)
- [waitUntilExit()](foundation/process/waituntilexit().md)
