On this page
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 | __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. |
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Process/Pool.html