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
methodThe 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