Skip to content

Commit 4fc5bda

Browse files
committed
[Concurrency] Replace 'await try!' with 'try! await'
1 parent b9bbe62 commit 4fc5bda

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)