Skip to content

Commit 4a2848e

Browse files
committed
Clean up comment
1 parent ed28b2c commit 4a2848e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/AsyncQueueTests/SemaphoreTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ final class SemaphoreTests: XCTestCase {
5151
4. We must utilize a single actor's isolated context to avoid accidental interleaving when suspending to communicate across actor contexts.
5252

5353
In order to ensure that we are executing the `wait()` calls before we call `signal()` _without awaiting a `wait()` call_,
54-
we utilize an Actor (which has inherently ordered execution) to enqueue ordered `Task`s. We make calls to this actor
55-
`await` the beginning of the `Task` to ensure that each `Task` has begun before resuming the test's execution.
54+
we utilize the Sempahore's ordered execution context to enqueue ordered `Task`s similar to how an ActorQueue works.
5655
*/
5756

5857
let iterationCount = 1_000

0 commit comments

Comments
 (0)