Structure_Concurrency5.9.0
CancellationError
An error that indicates a task was canceled.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct CancellationError
This error is also thrown automatically by Task.checkCancellation()
, if the current task has been canceled.
Citizens in _Concurrency
Conformances
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.