Skip to content

Commit ff2b2ce

Browse files
authored
Update async_taskgroup_asynciterator_semantics.swift
1 parent 48ddcdc commit ff2b2ce

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

test/Concurrency/Runtime/async_taskgroup_asynciterator_semantics.swift

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func test_taskGroup_contains() async {
122122
}
123123

124124
let three = await group.contains(3)
125-
print("three = \(three)")
125+
print("three = \(three)") // CHECK: three = true
126126

127127
for n in 5...7 {
128128
group.spawn {
@@ -131,16 +131,11 @@ func test_taskGroup_contains() async {
131131
}
132132

133133
let six = await group.contains(6)
134-
print("six = \(six)")
135-
136-
for n in 8...10 {
137-
group.spawn {
138-
return n
139-
}
140-
}
141-
142-
let nine = await group.contains(9)
143-
print("nine = \(nine)")
134+
print("six = \(six)") // CHECK: six = true
135+
136+
137+
let sixAgain = await group.contains(6)
138+
print("six again = \(sixAgain)") // CHECK: six again = false
144139

145140
return 0
146141
}

0 commit comments

Comments
 (0)