class Coordinator

Methods

__construct()

No description

bool
yield(float|int $timeout = -1)

Yield the current coroutine for a given timeout, unless the coordinator is woken up from outside.

bool
isClosing()

Determine if the coordinator is closing.

void
resume()

Wake up all coroutines yielding for this coordinator.

Details

at line 13
__construct()

No description

at line 23
bool yield(float|int $timeout = -1)

Yield the current coroutine for a given timeout, unless the coordinator is woken up from outside.

Parameters

float|int $timeout

Return Value

bool

Returns true if the coordinator has been woken up

at line 32
bool isClosing()

Determine if the coordinator is closing.

Return Value

bool

at line 40
void resume()

Wake up all coroutines yielding for this coordinator.

Return Value

void