Pool
class Pool mixin Factory mixin PendingProcess (View source)
Properties
protected Factory | $factory | The process factory instance. |
|
protected callable | $callback | The callback that resolves the pending processes. |
|
protected array | $pendingProcesses | The array of pending processes. |
Methods
void
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
void
__construct(Factory $factory, callable $callback)
Create a new process pool.
PendingProcess
as(string $key)
Add a process to the pool with a key.
InvokedProcessPool
start(callable|null $output = null)
Start all of the processes in the pool.
ProcessPoolResults
run()
Start and wait for the processes to finish.
ProcessPoolResults
wait()
Start and wait for the processes to finish.
PendingProcess
__call(string $method, array $parameters)
Dynamically proxy methods calls to a new pending process.