class ConnectionPeriodicTimer implements IteratorAggregate, Countable

Class ConnectionPeriodicTimer

Properties

protected array $registry
protected LoopInterface $loop
protected ConnectionInterface $connection

Methods

__construct(ConnectionInterface $connection, LoopInterface $loop)

No description

bool
getPeriodicTimer(string $name)

No description

string
getTid(string $name)

No description

addPeriodicTimer(string $name, int|float $timeout, mixed $callback)

No description

bool
isPeriodicTimerActive(string $name)

No description

cancelPeriodicTimer(mixed $tidOrname)

No description

getIterator()

No description

int.
count()

No description

Details

at line 31
__construct(ConnectionInterface $connection, LoopInterface $loop)

Parameters

ConnectionInterface $connection
LoopInterface $loop

at line 42
bool getPeriodicTimer(string $name)

Parameters

string $name

Return Value

bool

at line 56
protected string getTid(string $name)

Parameters

string $name

Return Value

string

at line 65
addPeriodicTimer(string $name, int|float $timeout, mixed $callback)

Parameters

string $name
int|float $timeout
mixed $callback

at line 74
bool isPeriodicTimerActive(string $name)

Parameters

string $name

Return Value

bool

at line 87
cancelPeriodicTimer(mixed $tidOrname)

Parameters

mixed $tidOrname

at line 102
ArrayIterator getIterator()

Return Value

ArrayIterator

at line 110
int. count()

Return Value

int.