Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 18337 программистов и 1637 роботов. Сейчас ищут 1302 программиста ...
EvWatcher::clear - Clear watcher pending status
Вернуться к: EvWatcher
EvWatcher::clear
(PECL ev >= 0.2.0)
EvWatcher::clear — Clear watcher pending status
Описание
public
int
EvWatcher::clear
( void
)
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.
Список параметров
У этой функции нет параметров.
Возвращаемые значения
In case if the watcher is pending, returns
revents
bitset as if the
watcher callback
had been invoked. Otherwise returns
0
.
Вернуться к: EvWatcher