code: def _run_callbacks(self):
          
          for i in range(len(self._callbacks)):
              callback, args = self._callbacks.popleft()
              try:
                  callback(*args)
              except Exception:
                  self._log.exception('Ignoring exception in callback:')
docs: Run registered callbacks.