Swoole\Timer::exists
(PECL swoole >= 1.9.0)
Swoole\Timer::exists — Check if a timer is existed.
Description
public static function Swoole\Timer::exists(
int $timer_id):
bool
Checks whether a timer with the given ID exists in the current process.
Return Values
Returns true if a timer with this ID exists in the current process,
false otherwise.