PHP 8.4.0 RC4 available for testing

EvWatcher::clear

(PECL ev >= 0.2.0)

EvWatcher::clearClear watcher pending status

Descrição

public EvWatcher::clear(): int

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.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

In case if the watcher is pending, returns revents bitset as if the watcher callback had been invoked. Otherwise returns 0 .

adicione uma nota

Notas Enviadas por Usuários (em inglês)

Não há notas de usuários para esta página.
To Top