Skip to content

Commit 4e6e159

Browse files
committed
[Concurrency] fix unintended warning failing async_cancellation test
1 parent 40b6b18 commit 4e6e159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Concurrency/async_cancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func test_cancellation_withCancellationHandler(_ anything: Any) async -> Picture
2626
let handle: Task.Handle<PictureData, Error> = Task.runDetached {
2727
let file = SomeFile()
2828

29-
return try await Task.withCancellationHandler(
29+
return await Task.withCancellationHandler(
3030
handler: { file.close() },
3131
operation: {
3232
await test_cancellation_guard_isCancelled(file)

0 commit comments

Comments
 (0)