Swoole\Timer::exists

(PECL swoole >= 1.9.0)

Swoole\Timer::exists — Check if a timer is existed.

Beschreibung

public static function Swoole\Timer::exists(int $timer_id): bool

Checks whether a timer with the given ID exists in the current process.

Parameter-Liste

timer_id

The timer ID returned by Swoole\Timer::tick() or Swoole\Timer::after().

Rückgabewerte

Returns true if a timer with this ID exists in the current process, false otherwise.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top