---
title: "resume(returning:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/unsafecontinuation/resume(returning:)-8rtni"
---

# resume(returning:)

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

## Declaration

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

## Parameters

- `value`: The value to return from the continuation.

## Discussion

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.
