---
title: "resume(with:)"
framework: Swift
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swift/continuation/resume(with:)"
---

# resume(with:)

Resume the task awaiting the continuation by having it either return or throw an error based on the state of the given Result value

## Declaration

```swift
consuming func resume(with result: consuming sending Result<Success, Failure>)
```

## Parameters

- `result`: A value to either return or throw from the continuation
