phasync\Internal\ClosureSelector final class

Documentation

This class creates a Selector for closures by assuming that the first bound static variable in the use() clause is the selectable.

Inheritance

Implements: phasync\SelectorInterface phasync\Internal\ObjectPoolInterface phasync\SelectableInterface

Uses Traits: phasync\Internal\ObjectPoolTrait

Properties (6)

private int $id
private ?Closure $closure
private phasync\SelectableInterface|phasync\SelectorInterface|null $otherSelectable
private bool $returnOtherSelectableToPool
private static array $pool
private static int $instanceCount

Methods (9)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Internal/ClosureSelector.php:14-95