Skip to content

Commit 0873d5c

Browse files
authored
Merge pull request swiftlang#58942 from Jager-yoo/fix-try-await-ordering
2 parents 689e9e3 + b8bcd3a commit 0873d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Concurrency/Runtime/actor_counters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func runTest(numCounters: Int, numWorkers: Int, numIterations: Int) async {
6565
for i in 0..<numWorkers {
6666
workers.append(
6767
Task.detached(priority: randomPriority) { [counters] in
68-
await try! Task.sleep(nanoseconds: UInt64.random(in: 0..<100) * 1_000_000)
68+
try! await Task.sleep(nanoseconds: UInt64.random(in: 0..<100) * 1_000_000)
6969
await worker(identity: i, counters: counters, numIterations: numIterations)
7070
}
7171
)

0 commit comments

Comments
 (0)