Skip to content

Commit 7c70c3e

Browse files
authored
Merge pull request #37678 from DougGregor/cancellation-error-availability
2 parents bae7115 + c81c5b6 commit 7c70c3e

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)