Skip to content

Commit 80e2d9a

Browse files
committed
[Fix] Void Inside SourceCompatibilityShims.swift file.
1 parent 9f0ba0d commit 80e2d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/SourceCompatibilityShims.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extension TaskPriority {
4949
@available(SwiftStdlib 5.5, *)
5050
@_alwaysEmitIntoClient
5151
public func withTaskCancellationHandler<T>(
52-
handler: @Sendable () -> (),
52+
handler: @Sendable () -> Void,
5353
operation: () async throws -> T
5454
) async rethrows -> T {
5555
try await withTaskCancellationHandler(operation: operation, onCancel: handler)
@@ -60,7 +60,7 @@ extension Task where Success == Never, Failure == Never {
6060
@available(*, deprecated, message: "`Task.withCancellationHandler` has been replaced by `withTaskCancellationHandler` and will be removed shortly.")
6161
@_alwaysEmitIntoClient
6262
public static func withCancellationHandler<T>(
63-
handler: @Sendable () -> (),
63+
handler: @Sendable () -> Void,
6464
operation: () async throws -> T
6565
) async rethrows -> T {
6666
try await withTaskCancellationHandler(handler: handler, operation: operation)

0 commit comments

Comments
 (0)