PHP 8.6.0 Beta 3 is available for testing

Swoole\Event::del

(PECL swoole >= 1.9.0)

Swoole\Event::delRemove a socket from reactor event listener

说明

public static function Swoole\Event::del(mixed $sock): bool

Removes a socket from the reactor event listener.

警告

Always call Event::del to unregister event monitoring prior to closing the socket. Failure to do so can result in memory leaks.

参数

sock

Socket file descriptor to remove.

返回值

成功时返回 true, 或者在失败时返回 false

添加备注

用户贡献的备注

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