« Swoole\Timer::clearAll
Swoole\Timer::info »

Swoole\Timer::exists

(PECL swoole >= 1.9.0)

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

説明

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

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

パラメータ

timer_id

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

戻り値

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

関連キーワード:
timer   Swoole   Timer   exists   Check   existed   current   process   clearAll   info   swoole   static   Checks   whether   given   returned   tick   after   otherwise
関連する関数・ページ:
swoole-timer.clear   swoole-timer.info   swoole-timer.stats   swoole-timer.list   swoole-timer.set   swoole-timer.tick