Swoole\Event::del

Remove a socket from reactor event listener

説明

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

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