<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Continuation/resume(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:12_Concurrency12ContinuationVAARi_zrlE6resume4withys6ResultOyxq_Gn_tF"
  },
  "title" : "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

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

## Parameters

`result`

A value to either return or throw from the
continuation

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)