略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Timer::after

2024-04-28

Swoole\Timer::after

(PECL swoole >= 1.9.0)

Swoole\Timer::afterTrigger a callback function after a period of time.

说明

public static Swoole\Timer::after(int $after_time_ms, callable $callback): void

Trigger a callback function after a period of time.

参数

after_time_ms

callback

返回值

add a noteadd a note

User Contributed Notes 1 note

up
0
Mohamed Ramadan
6 months ago
when using timer after must use

swoole_event_wait();

官方地址:https://www.php.net/manual/en/swoole-timer.after.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3