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
Add a process to the pool with a key.
Start all of the processes in the pool.
Start and wait for the processes to finish.
Start and wait for the processes to finish.
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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.