resume(throwing:)
Resume the task awaiting the continuation by having it throw an error from its suspension point.
Declaration
func resume(throwing error: E)Parameters
- error:
The error to throw from the continuation.
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.