def destroy(self): # Remove this watcher from its owning Flux handle # if the handle is still around. A try/except block # used here in case the Watcher got an exception # before __init__ (e.g. in subclass __init__) try: self.flux_handle.del_watcher(self) except AttributeError: pass if self.handle is not None: raw.flux_watcher_destroy(self.handle) self.handle = None
def destroy(self): if self.handle is not None: raw.flux_watcher_destroy(self.handle) self.handle = None