def dispatch_events(self, event_queue, timeout):
    event, watch = event_queue.get(block=True, timeout=timeout)
    try:
      self._dispatch_event(event, watch)
    except __HOLE__:
      # All handlers for the watch have already been removed. We cannot
      # lock properly here, because `event_queue.get` blocks whenever the
      # queue is empty.
      pass
    event_queue.task_done()
dataset/ETHPy150Open austinwagner/sublime-sourcepawn/watchdog/observers/api.py/BaseObserver.dispatch_events