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.
2 parents df4f824 + 47a333c commit cc920a9Copy full SHA for cc920a9
test/Concurrency/Runtime/async_task_cancellation_early.swift
@@ -4,9 +4,6 @@
4
// REQUIRES: concurrency
5
// REQUIRES: libdispatch
6
7
-// Temporarily disabled to unblock PR testing:
8
-// REQUIRES: rdar80745964
9
-
10
// rdar://76038845
11
// REQUIRES: concurrency_runtime
12
// UNSUPPORTED: back_deployment_runtime
@@ -18,7 +15,7 @@ func test_detach_cancel_child_early() async {
18
15
print(#function) // CHECK: test_detach_cancel_child_early
19
16
let h: Task<Bool, Error> = Task.detached {
20
17
async let childCancelled: Bool = { () -> Bool in
21
- await Task.sleep(2_000_000_000)
+ try? await Task.sleep(for: .seconds(10)) // we'll be woken up by cancellation
22
return Task.isCancelled
23
}()
24
0 commit comments