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

Descrizione

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

Removes a socket from the reactor event listener.

Avviso

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

Elenco dei parametri

sock

Socket file descriptor to remove.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

add a note

User Contributed Notes

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