File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments