File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
1
+ // RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library)
2
2
3
3
// REQUIRES: executable_test
4
4
// REQUIRES: concurrency
5
- // REQUIRES: rdar78638858
6
5
7
6
// https://bugs.swift.org/browse/SR-14333
8
7
// UNSUPPORTED: OS=windows-msvc
@@ -35,10 +34,10 @@ func yielding() async {
35
34
let one = One ( )
36
35
let two = Two ( )
37
36
await withTaskGroup ( of: Int . self) { group in
38
- await group. spawn {
37
+ group. addTask {
39
38
await one. go ( times: 100 )
40
39
}
41
- await group. spawn {
40
+ group. addTask {
42
41
await two. go ( times: 100 )
43
42
}
44
43
}
@@ -48,7 +47,5 @@ func yielding() async {
48
47
@main struct Main {
49
48
static func main( ) async {
50
49
await yielding ( )
51
- // TODO: No idea for a good test for this... Open to ideas?
52
- // CHECK: Two @ 100
53
50
}
54
51
}
You can’t perform that action at this time.
0 commit comments