php8.5
Home/ Manual/ swoole / timer/ Swoole\Timer::clearAll

Swoole\Timer::clearAll

PHP function Edit on GitHub ✎

Clear all timers in the current process.

Description

Swoole\Timer::clearAll(): bool

Clear all timers in the current process. As of Swoole 4.4.0.

Return Values

Success false is returned when no timer has been created in this process yet. Only timers created from PHP are removed; internal timers are left in place.

Source: reference/swoole/swoole/timer/clearAll.xml · from the official PHP manual (php/doc-en)