php8.5
Home/ Manual/ event / eventconfig/ EventConfig::avoidMethod

EventConfig::avoidMethod

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Tells libevent to avoid specific event method

Description

EventConfig::avoidMethod(string $method): bool

Tells libevent to avoid specific event method(backend). See Creating an event base.

Parameters

method

The backend method to avoid. See EventConfig constants.

Return Values

Success

Examples

EventConfig::avoidMethod() example

php
<?php
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
    echo "'select' method avoided\n";
}
?>

See Also

  • EventBase::__construct

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