Dutch PHP Conference 2027

Swoole\Timer::exists

(PECL swoole >= 1.9.0)

Swoole\Timer::existsCheck 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.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top