Skip to content

pda.Watcher

Watcher(task, loop) -> 'None'

A running watch. Call cancel when you are done with it.

A watch that stops because its callback raised is not silent: error holds the exception and the repr says so.

MethodDescription
cancelStop watching. Safe to call from the thread that started it.

cancel(self) -> 'None'

Stop watching. Safe to call from the thread that started it.

PropertyDescription
errorWhy the watch stopped, if the callback raised. None otherwise.
taskThe underlying task, which lives on the client’s event loop.

Why the watch stopped, if the callback raised. None otherwise.

The underlying task, which lives on the client’s event loop.