Type MethodConcurrency
checkCancellation()
Throws an error if the task was canceled.
- iOS 13.0+
- macOS 10.15+
- tvOS 13.0+
- watchOS 6.0+
static func checkCancellation() throws
Overview
The error is always an instance of CancellationError
.
Throws an error if the task was canceled.
static func checkCancellation() throws
The error is always an instance of CancellationError
.