Skip to content

Commit c254623

Browse files
authored
Merge pull request #60570 from apple/pick-deprecate-cancelation-handler
🍒[5.7][Concurrency] Deprecate one of the cancellation handler overloads
2 parents 1726f9d + 5aeec68 commit c254623

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/public/BackDeployConcurrency/SourceCompatibilityShims.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ extension TaskPriority {
5454

5555
@available(SwiftStdlib 5.1, *)
5656
@_alwaysEmitIntoClient
57+
@available(*, deprecated, renamed: "withTaskCancellationHandler(operation:onCancel:)")
5758
public func withTaskCancellationHandler<T>(
5859
handler: @Sendable () -> Void,
5960
operation: () async throws -> T

stdlib/public/Concurrency/SourceCompatibilityShims.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ extension TaskPriority {
5454

5555
@available(SwiftStdlib 5.1, *)
5656
@_alwaysEmitIntoClient
57+
@available(*, deprecated, renamed: "withTaskCancellationHandler(operation:onCancel:)")
5758
public func withTaskCancellationHandler<T>(
5859
handler: @Sendable () -> Void,
5960
operation: () async throws -> T

0 commit comments

Comments
 (0)