Watchers
A watcher is an object that gets created to record interest in some event.
For instance, the following code waits for
All the watcher constructors automatically start the watchers.
Note that a watcher will automatically be stopped when the watcher object is destroyed. Therefore, the watcher objects returned by the constructors or factory methods should be kept. Note also that all methods changing some watcher property( set , priority etc.) automatically stop and start it again if it is active, which means pending events get lost. See also: Watcher callbacks . |