PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

Swoole\Server::defer

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Server::deferDelay execution of the callback function at the end of current EventLoop.

说明

public Swoole\Server::defer ( callable $callback ) : void

参数

callback

返回值