---
title: "withCheckedThrowingContinuation(function:_:)"
framework: swift
role: symbol
role_heading: Function
path: "swift/withcheckedthrowingcontinuation(function:_:)-13yf6"
---

# withCheckedThrowingContinuation(function:_:)

## Declaration

```swift
@abi(nonisolated(nonsending) func withCheckedThrowingContinuationNonisolatedNonsending<T>(function: String, _ body: (CheckedContinuation<T, any Error>) -> Void) async throws -> sending T) nonisolated(nonsending) func withCheckedThrowingContinuation<T>(function: String = #function, _ body: (CheckedContinuation<T, any Error>) -> Void) async throws -> sending T
```
