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.
Methods
Section titled “Methods”| Method | Description |
|---|---|
cancel | Stop watching. Safe to call from the thread that started it. |
cancel
Section titled “cancel”cancel(self) -> 'None'Stop watching. Safe to call from the thread that started it.
Properties
Section titled “Properties”| Property | Description |
|---|---|
error | Why the watch stopped, if the callback raised. None otherwise. |
task | The 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.