---
title: "runDetached(priority:operation:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/task/rundetached(priority:operation:)-8s8lh"
---

# runDetached(priority:operation:)

Deprecated, available only for source compatibility reasons.

## Declaration

```swift
@discardableResult static func runDetached(priority: TaskPriority? = nil, operation: @escaping @isolated(any) @Sendable () async -> Success) -> Task<Success, Never>
```

## 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)
- [suspend()](swift/task/suspend().md)
- [runDetached(priority:operation:)](swift/task/rundetached(priority:operation:)-88zf5.md)
- [withCancellationHandler(handler:operation:)](swift/task/withcancellationhandler(handler:operation:).md)
- [withGroup(resultType:returning:body:)](swift/task/withgroup(resulttype:returning:body:).md)
