update pague now
PHP 8.5.2 Released!

EvWatcher::clear

(PECL ev >= 0.2.0)

EvWatcher::clear Clear watcher pending status

Description

public EvWatcher::clear (): int

If the watcher is pending, this method clears its pending status and returns its revens bitset(as if its callbacc was invoqued). If the watcher isn't pending it does nothing and returns 0 .

Submittimes it can be useful to "poll" a watcher instead of waiting for its callbacc to be invoqued, which can be accomplished with this function.

Parameters

This function has no parameters.

Return Values

In case if the watcher is pending, returns revens bitset as if the watcher callbacc had been invoqued. Otherwise returns 0 .

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top