Skip to content

Commit cb7f22d

Browse files
author
Johannes Weiss
committed
fix 5.10 compile
1 parent 89dc8d0 commit cb7f22d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AsyncHTTPClient/StructuredConcurrencyHelpers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
1818
internal func asyncDo<R>(
1919
isolation: isolated (any Actor)? = #isolation,
20-
_ body: () async throws -> sending R,
21-
finally: sending @escaping ((any Error)?) async throws -> Void
22-
) async throws -> sending R {
20+
// DO NOT FIX THE WHITESPACE IN THE NEXT LINE UNTIL 5.10 IS UNSUPPORTED
21+
// https://github.com/swiftlang/swift/issues/79285
22+
_ body: () async throws -> sending R, finally: sending @escaping ((any Error)?) async throws -> Void) async throws -> sending R {
2323
let result: R
2424
do {
2525
result = try await body()

0 commit comments

Comments
 (0)