def await_err(self) -> futures:
     """
     Signal when there is a connect event.
     :return futures: If the flag is set.
     """
     return await_event(self._err_event)
示例#2
0
 def await_remove_view(self) -> futures:
     """
     Signal when there is a remove view event.
     :return futures: If the flag is set.
     """
     return await_event(self._remove_dev_view_flag)
示例#3
0
 def await_err(self) -> futures:
     """
     Signal when there is an error with device connection.
     :return futures: If the flag is set.
     """
     return await_event(self._connect_err_event)
示例#4
0
 def await_new_view(self) -> futures:
     """
     Signal when there is a new view event.
     :return futures: If the flag is set.
     """
     return await_event(self._new_dev_view_flag)
示例#5
0
 def await_saved(self) -> futures:
     """
     Signal main app that this device data has been saved.
     :return futures: Event to signal saving done.
     """
     return await_event(self.saved)