(PECL swoole >= 1.9.0)
Swoole\Timer::exists — Check if a timer is existed.
$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.
true
false