---
title: suspend()
framework: swift
role: symbol
role_heading: Type Method
path: swift/task/suspend()
---

# suspend()

## Declaration

```swift
static func suspend() async
```

## See Also

### Deprecated

- [Task.Group](swift/task/group.md)
- [Task.Handle](swift/task/handle.md)
- [Task.Priority](swift/task/priority.md)
- [CancellationError()](swift/task/cancellationerror().md)
- [getResult()](swift/task/getresult().md)
- [get()](swift/task/get()-4i2gt.md)
- [get()](swift/task/get()-4ohks.md)
- [sleep(_:)](swift/task/sleep(_:).md)
- [runDetached(priority:operation:)](swift/task/rundetached(priority:operation:)-88zf5.md)
- [runDetached(priority:operation:)](swift/task/rundetached(priority:operation:)-8s8lh.md)
- [withCancellationHandler(handler:operation:)](swift/task/withcancellationhandler(handler:operation:).md)
- [withGroup(resultType:returning:body:)](swift/task/withgroup(resulttype:returning:body:).md)
