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 39
PendingProcess
as(string $key)
Add a process to the pool with a key.
at line 51
InvokedProcessPool
start(callable|null $output = null)
Start all of the processes in the pool.
The caller must wait for or stop the pool before its owning coroutine exits.
at line 88
ProcessPoolResults
run()
Start and wait for the processes to finish.
at line 96
ProcessPoolResults
wait()
Start and wait for the processes to finish.
at line 104
PendingProcess
__call(string $method, array $parameters)
Dynamically proxy methods calls to a new pending process.