File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ struct AsyncTaskAndContext {
38
38
// / be true, and this must be called synchronously with the parent.
39
39
// / The parent is responsible for creating a ChildTaskStatusRecord.
40
40
// / TODO: should we have a single runtime function for creating a task
41
- // / and doing this child task status record management?
41
+ // / and doing this child task status record management?
42
42
SWIFT_EXPORT_FROM (swift_Concurrency) SWIFT_CC(swift)
43
43
AsyncTaskAndContext swift_task_create (JobFlags flags,
44
44
AsyncTask *parent,
@@ -66,7 +66,7 @@ using FutureAsyncSignature =
66
66
// / be true, and this must be called synchronously with the parent.
67
67
// / The parent is responsible for creating a ChildTaskStatusRecord.
68
68
// / TODO: should we have a single runtime function for creating a task
69
- // / and doing this child task status record management?
69
+ // / and doing this child task status record management?
70
70
// /
71
71
// / flags.task_isFuture must be set. \c futureResultType is the type
72
72
// /
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func test_taskGroup_cancel_parent_affects_group() async {
27
27
let x = Task . runDetached {
28
28
try ! await Task . withGroup ( resultType: Int . self) { group -> Void in
29
29
await group. add {
30
- sleep ( 3 )
30
+ usleep ( 3 * 1000 )
31
31
let c = await Task . __unsafeCurrentAsync ( ) . isCancelled
32
32
print ( " group task isCancelled: \( c) " )
33
33
return 0
You can’t perform that action at this time.
0 commit comments