LonghornPHP 2026

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 を返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top