Skip to content

Instantly share code, notes, and snippets.

@danielballan
Created July 6, 2020 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielballan/20e0b25bd365b6356ef6ef24b977c7e8 to your computer and use it in GitHub Desktop.
Save danielballan/20e0b25bd365b6356ef6ef24b977c7e8 to your computer and use it in GitHub Desktop.
Clear status object once it is complete.
class MyDetector(...):
def _acquire_changed(self, value=None, old_value=None, **kwargs):
super().acquire_changed(value=value, old_value=old_value, **kwargs)
if self._status.done:
# Clear the state to be ready for the next round.
self._status = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment