Swoole\Timer::exists

Check if a timer is existed.

説明

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

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.