Pool
class Pool mixin Factory mixin PendingProcess
Properties
| protected array<int|PendingProcess> | $pendingProcesses | The array of pending processes. |
Methods
as(string $key)
Add a process to the pool with a key.
start(callable|null $output = null)
Start all of the processes in the pool.
run()
Start and wait for the processes to finish.
wait()
Start and wait for the processes to finish.
__call(string $method, array $parameters)
Dynamically proxy methods calls to a new pending process.
Details
at line 40
PendingProcess
as(string $key)
Add a process to the pool with a key.
at line 55
InvokedProcessPool
start(callable|null $output = null)
Start all of the processes in the pool.
Start the pool in the coroutine that will wait for it. Its processes are stopped when that coroutine exits unless explicitly detached by their options.
at line 92
ProcessPoolResults
run()
Start and wait for the processes to finish.
at line 100
ProcessPoolResults
wait()
Start and wait for the processes to finish.
at line 108
PendingProcess
__call(string $method, array $parameters)
Dynamically proxy methods calls to a new pending process.