php8.5
Home/ Manual/ event / event/ Event::free

Event::free

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Make event non-pending and free resources allocated for this event

Description

Event::free(): void

Removes event from the list of events monitored by libevent, and free resources allocated for the event.

Warning

The Event::free method currently doesn't destruct the object itself. To destruct the object completely call unset(), or assign null.

Parameters Parameters

Return Values

Void

See Also

  • Event::__construct

Source: reference/event/event/free.xml · from the official PHP manual (php/doc-en)