class InvokedProcessPool implements Countable

Methods

__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.

stop(float $timeout = 10, int|null $signal = null)

Stop all processes that are still running.

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

at line 19
__construct(array $invokedProcesses)

Create a new invoked process pool.

Parameters

array $invokedProcesses

the array of invoked processes

at line 26
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

at line 34
Collection stop(float $timeout = 10, int|null $signal = null)

Stop all processes that are still running.

Parameters

float $timeout
int|null $signal

Return Value

Collection

at line 74
Collection running()

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

Return Value

Collection

at line 83
ProcessPoolResults wait()

Wait for the processes to finish.

Return Value

ProcessPoolResults

at line 108
int count()

Get the total number of processes.

Return Value

int