class InvokedProcessPool implements Countable (View source)

Properties

protected array $invokedProcesses

The array of invoked processes.

Methods

void
__construct(array $invokedProcesses)

Create a new invoked process pool.

signal(int $signal)

Send a signal to each running process in the pool, returning the processes that were signalled.

running()

Get the processes in the pool that are still currently running.

wait()

Wait for the processes to finish.

int
count()

Get the total number of processes.

Details

void __construct(array $invokedProcesses)

Create a new invoked process pool.

Parameters

array $invokedProcesses

Return Value

void

Collection signal(int $signal)

Send a signal to each running process in the pool, returning the processes that were signalled.

Parameters

int $signal

Return Value

Collection

Collection running()

Get the processes in the pool that are still currently running.

Return Value

Collection

ProcessPoolResults wait()

Wait for the processes to finish.

Return Value

ProcessPoolResults

int count()

Get the total number of processes.

Return Value

int