Skip to content

Commit 5aeec68

Browse files
committed
[Concurrency] Deprecate one of the cancellation handler overloads
1 parent 9ef092c commit 5aeec68

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)