Contents

checkCancellation()

Throws an error if the task was canceled.

Declaration

static func checkCancellation() throws

Discussion

The error is always an instance of CancellationError.

See Also

Canceling Tasks