Skip to content

Commit c81c5b6

Browse files
committed
Add missing availability on CancellationError
1 parent 3fe712d commit c81c5b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/TaskCancellation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ extension Task where Success == Never, Failure == Never {
104104
///
105105
/// This error is also thrown automatically by `Task.checkCancellation()`,
106106
/// if the current task has been cancelled.
107+
@available(SwiftStdlib 5.5, *)
107108
public struct CancellationError: Error {
108109
// no extra information, cancellation is intended to be light-weight
109110
public init() {}

0 commit comments

Comments
 (0)