class TopicPeriodicTimer implements IteratorAggregate

Class TopicPeriodicTimer

Properties

protected array $registry
protected LoopInterface $loop

Methods

__construct(LoopInterface $loop)

TopicPeriodicTimer constructor.

bool
getAllPeriodicTimers(TopicInterface $topic, string $name)

No description

array
getPeriodicTimers(TopicInterface $topic)

No description

addPeriodicTimer(TopicInterface $topic, string $name, mixed $timeout, mixed $callback)

No description

bool
isRegistered(TopicInterface $topic)

No description

bool
isPeriodicTimerActive(TopicInterface $topic, string $name)

No description

cancelPeriodicTimer(TopicInterface $topic, string $name)

No description

clearPeriodicTimer(TopicInterface $topic)

No description

getIterator()

No description

Details

at line 27
__construct(LoopInterface $loop)

TopicPeriodicTimer constructor.

Parameters

LoopInterface $loop

at line 39
bool getAllPeriodicTimers(TopicInterface $topic, string $name)

Parameters

TopicInterface $topic
string $name

Return Value

bool

at line 54
array getPeriodicTimers(TopicInterface $topic)

Parameters

TopicInterface $topic

Return Value

array

at line 70
addPeriodicTimer(TopicInterface $topic, string $name, mixed $timeout, mixed $callback)

Parameters

TopicInterface $topic
string $name
mixed $timeout
mixed $callback

at line 84
bool isRegistered(TopicInterface $topic)

Parameters

TopicInterface $topic

Return Value

bool

at line 97
bool isPeriodicTimerActive(TopicInterface $topic, string $name)

Parameters

TopicInterface $topic
string $name

Return Value

bool

at line 111
cancelPeriodicTimer(TopicInterface $topic, string $name)

Parameters

TopicInterface $topic
string $name

at line 125
clearPeriodicTimer(TopicInterface $topic)

Parameters

TopicInterface $topic

at line 134
ArrayIterator getIterator()

Return Value

ArrayIterator