mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Fix some doc links
This commit is contained in:
parent
c0e6875b61
commit
30b9a05691
@ -46,4 +46,4 @@ foreach ($responses as $url => $response) {
|
||||
If you just want to fetch multiple HTTP resources concurrently, it's better to use [Artax](https://amphp.org/artax/), our non-blocking HTTP client.
|
||||
|
||||
The functions you call must be predefined or autoloadable by Composer so they also exist in the worker processes.
|
||||
Instead of simple callables, you can also [enqueue `Task` instances](./custom-tasks.md) with `Amp\Parallel\Worker\enqueue()`.
|
||||
Instead of simple callables, you can also [enqueue `Task` instances](./workers#task) with `Amp\Parallel\Worker\enqueue()`.
|
@ -8,8 +8,8 @@ to execute tasks. This allows multiple tasks to be executed simultaneously.
|
||||
|
||||
## `Pool`
|
||||
|
||||
The `Pool` interface extends [`Worker`](/parallel/workers#worker), adding methods to get information about the pool or pull a single `Worker` instance
|
||||
out of the pool. A pool uses multiple `Worker` instances to execute enqueued [tasks](/parallel/workers#task).
|
||||
The `Pool` interface extends [`Worker`](./workers#worker), adding methods to get information about the pool or pull a single `Worker` instance
|
||||
out of the pool. A pool uses multiple `Worker` instances to execute enqueued [tasks](./workers#task).
|
||||
|
||||
```php
|
||||
<?php
|
||||
@ -28,7 +28,7 @@ interface Pool extends Worker
|
||||
* Gets a worker from the pool. The worker is marked as busy and will only be reused if the pool runs out of
|
||||
* idle workers. The worker will be automatically marked as idle once no references to the returned worker remain.
|
||||
*
|
||||
* @return \Amp\Parallel\Worker\Worker
|
||||
* @return Worker
|
||||
*
|
||||
* @throws \Amp\Parallel\Context\StatusError If the queue is not running.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user