Skip to content

Commit f20904d

Browse files
committed
Fix misleading comments about ActorQueue task ordering
ActorQueues are re-entrant, not FIFO, so tasks don't wait for earlier tasks to complete.
1 parent e4ff55f commit f20904d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AsyncQueueTests/CancellableQueueTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ struct CancellableQueueTests {
182182
await taskAllowedToEnd.wait()
183183
}
184184

185-
// Create pending tasks that won't start until the first task suspends
185+
// Create additional tasks
186186
let task2 = Task(on: systemUnderTest) { _ in }
187187

188188
let task3 = Task(on: systemUnderTest) { _ in }
@@ -275,7 +275,7 @@ struct CancellableQueueTests {
275275
await taskAllowedToEnd.wait()
276276
}
277277

278-
// Create pending tasks that won't start until the first task suspends
278+
// Create additional tasks
279279
let task2 = Task(on: systemUnderTest) { }
280280

281281
let task3 = Task(on: systemUnderTest) { }

0 commit comments

Comments
 (0)