phpday 2027 - Call for Papers

Swoole\Event::del

(PECL swoole >= 1.9.0)

Swoole\Event::del — Remove a socket from reactor event listener

Description

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

Removes a socket from the reactor event listener.

Warning

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

Parameters

sock

Socket file descriptor to remove.

Return Values

Returns true on success or false on failure.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top