class Illuminate / Process / Pool

Pool

Properties

protected

$factory Factory

The process factory instance.

Default: null
protected

$callback callable

The callback that resolves the pending processes.

Default: null
protected

$pendingProcesses array

The array of pending processes.

Default: []

Methods

public

__construct ( Factory $factory , callable $callback ) : void

Create a new process pool.

Parameters

public

as ( string $key ) : PendingProcess

Add a process to the pool with a key.

Parameters

  • $key string
public

start ( callable $output ) : InvokedProcessPool

Start all of the processes in the pool.

Parameters

  • $output callable|null
public

run ( ) : ProcessPoolResults

Start and wait for the processes to finish.

public

wait ( ) : ProcessPoolResults

Start and wait for the processes to finish.

public

__call ( $method , $parameters ) : PendingProcess

Dynamically proxy methods calls to a new pending process.

Parameters

  • $method string
  • $parameters array