class ProcessState implements NonCopyableContext

internal  
 

Keep asynchronous processes with their starting coroutine without retaining completed processes.

Constants

CONTEXT_KEY

Properties

Process, true> $processes

Methods

__construct()

Create process state owned by one coroutine.

static ProcessState
current()

Get the current coroutine's state and register its exit cleanup once.

void
stop()

Stop the processes left behind when their owning coroutine exits.

Details

at line 28
__construct()

Create process state owned by one coroutine.

at line 36
static ProcessState current()

Get the current coroutine's state and register its exit cleanup once.

Return Value

ProcessState

at line 51
void stop()

Stop the processes left behind when their owning coroutine exits.

Return Value

void