(self, timeout=None, check_error=True)
| 103 | self.get(check_error=check_error) |
| 104 | |
| 105 | def get(self, timeout=None, check_error=True): |
| 106 | timeout = timeout if timeout is not None else self._timeout |
| 107 | ev = self._event_queue.get(timeout=timeout) |
| 108 | if check_error and ev.name == "DC_EVENT_ERROR": |
| 109 | raise ValueError(f"unexpected event: {ev}") |
| 110 | return ev |
| 111 | |
| 112 | def iter_events(self, timeout=None, check_error=True): |
| 113 | while True: |
no outgoing calls