Handle is an internal base class from which all handles inherit in pyuv. It provides all handles with a number of methods which are common for all.
Parameters: callback (callable) – Function that will be called after the handle is closed.
Close the handle. After a handle has been closed no other operations can be performed on it, they will raise HandleClosedError.
Reference/unreference this handle. If running the event loop in default mode (UV_RUN_DEFAULT) the loop will exit when there are no more ref’d active handles left. Setting ref to True on a handle will ensure that the loop is maintained alive while the handle is active. Likewise, if all handles are unref’d, the loop would finish enven if they were all active.
Indicates if this handle is active.
Indicates if this handle is closing or already closed.