We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b6b18 commit 4e6e159Copy full SHA for 4e6e159
test/Concurrency/async_cancellation.swift
@@ -26,7 +26,7 @@ func test_cancellation_withCancellationHandler(_ anything: Any) async -> Picture
26
let handle: Task.Handle<PictureData, Error> = Task.runDetached {
27
let file = SomeFile()
28
29
- return try await Task.withCancellationHandler(
+ return await Task.withCancellationHandler(
30
handler: { file.close() },
31
operation: {
32
await test_cancellation_guard_isCancelled(file)
0 commit comments