EvWatcher::clear
(PECL ev >= 0.2.0)
EvWatcher::clear — Clear watcher pending status
Description
If the watcher is pending, this method clears its
pending
status and returns its
revents
bitset(as if its callback was invoked). If the watcher isn't pending
it does nothing and returns
0
.
Sometimes it can be useful to "poll" a watcher instead of waiting for its callback to be invoked, which can be accomplished with this function.
Parameters
This function has no parameters.
Return Values
In case if the watcher is pending, returns
revents
bitset as if the
watcher callback
had been invoked. Otherwise returns
0
.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для управления процессами программ
- Ev
- Функция EvWatcher::clear() - Clear watcher pending status
- Функция EvWatcher::__construct() - Abstract constructor of a watcher object
- Функция EvWatcher::feed() - Feeds the given revents set into the event loop
- Функция EvWatcher::getLoop() - Returns the loop responsible for the watcher
- EvWatcher::invoke
- Функция EvWatcher::keepalive() - Configures whether to keep the loop from returning
- Функция EvWatcher::setCallback() - Sets new callback for the watcher
- Функция EvWatcher::start() - Starts the watcher
- Функция EvWatcher::stop() - Stops the watcher
Коментарии
404 Not Found