Skip to content

Commit 27848a8

Browse files
committed
Fix typos in documentation
1 parent 0bac6e1 commit 27848a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ This means that you control how many operations can be executed concurrently.
104104
If you add a job to the queue and it still below the limit, it will be executed
105105
immediately. If you keep adding new jobs to the queue and its concurrency limit
106106
is reached, it will not start a new operation and instead queue this for future
107-
execution. Once one of the pending operations complete, it will pick the next
107+
execution. Once one of the pending operations is complete, it will pick the next
108108
job from the queue and execute this operation.
109109

110110
The `new Queue(int $concurrency, ?int $limit, callable(mixed):PromiseInterface<T> $handler)` call
@@ -183,7 +183,7 @@ $q = new Queue(10, null, function ($url) use ($browser) {
183183
$promise = $q($url);
184184
```
185185

186-
The `$q` instance is invokable, so that invoking `$q(...$args)` will
186+
The `$q` instance is invocable, so that invoking `$q(...$args)` will
187187
actually be forwarded as `$browser->get(...$args)` as given in the
188188
`$handler` argument when concurrency is still below limits.
189189

src/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function __construct($concurrency, $limit, $handler)
338338
}
339339

340340
/**
341-
* The Queue instance is invokable, so that invoking `$q(...$args)` will
341+
* The Queue instance is invocable, so that invoking `$q(...$args)` will
342342
* actually be forwarded as `$handler(...$args)` as given in the
343343
* `$handler` argument when concurrency is still below limits.
344344
*

0 commit comments

Comments
 (0)