phasync\Internal\Flag final class

Documentation

This class stores fiber instances associated with a flag. It is designed to be used in a WeakMap, so that if the flag object is garbage collected, then the destructor of this object will ensure that all Fiber instances waiting to be resumed are resumed with an exception.

Inheritance

Implements: phasync\Internal\ObjectPoolInterface Countable

Uses Traits: phasync\Internal\ObjectPoolTrait

Properties (5)

private static array $allFibers
private int $id
private phasync\Drivers\DriverInterface $driver
private static array $pool
private static int $instanceCount

Methods (13)

Documentation missing

Documentation missing

Ensures any waiting Fiber instances are resumed.

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Internal/Flag.php:20-135