PHP 8.5.10 Released!

Swoole\Event::del

(PECL swoole >= 1.9.0)

Swoole\Event::delRemove 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.

add a note

User Contributed Notes

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