PHP Conference Ehime 2026

Swoole\Timer::set

(No version information available, might only be in Git)

Swoole\Timer::setSet timer-related parameters

说明

public static function Swoole\Timer::set(array $settings): void

Sets the options used by the timers of the current process.

警告

This method was deprecated in Swoole 4.6.0 and removed in Swoole 6.0.0. Use swoole_async_set() instead.

参数

settings

An associative array of options. Only enable_coroutine is recognised: when set to false, the timer callbacks are executed directly instead of inside a newly created coroutine.

返回值

没有返回值。

添加备注

用户贡献的备注

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