<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UnsafeContinuation/resume(returning:)-8rtni",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Scc6resume9returningyxn_tF"
  },
  "title" : "resume(returning:)"
}
-->

# resume(returning:)

Resume the task that’s awaiting the continuation
by returning the given value.

```
func resume(returning value: sending T)
```

## Parameters

`value`

The value to return from the continuation.

## Discussion

A continuation must be resumed exactly once.
If the continuation has already resumed,
then calling this method results in undefined behavior.

After calling this method,
control immediately returns to the caller.
The task continues executing
when its executor schedules it.

---

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)