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

Açıklama

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

Removes a socket from the reactor event listener.

Uyarı

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

Bağımsız Değişkenler

sock

Socket file descriptor to remove.

Dönen Değerler

Başarı durumunda true, başarısızlık durumunda false döner.

add a note

User Contributed Notes

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