PHP 8.6.0 Beta 3 is available for testing

Swoole\Timer::exists

(PECL swoole >= 1.9.0)

Swoole\Timer::existsCheck if a timer is existed.

Descrizione

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

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

Elenco dei parametri

timer_id

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

Valori restituiti

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top