---
title: "resume(throwing:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/checkedcontinuation/resume(throwing:)"
---

# resume(throwing:)

Resume the task awaiting the continuation by having it throw an error from its suspension point.

## Declaration

```swift
func resume(throwing error: E)
```

## Parameters

- `error`: The error to throw from the continuation.

## Discussion

Discussion A continuation must be resumed exactly once. If the continuation has already been resumed through this object, then the attempt to resume the continuation will trap. After resume enqueues the task, control immediately returns to the caller. The task continues executing when its executor is able to reschedule it.
