docs: def _check_for_pending(self, *args, **kwargs):
          """
          Checks if a notification is pending.
          """
          if self._notification_pending and not self._processing:
              self._processing = True
              args, kwargs = self._data
              self._notify(*args, **kwargs)
              self._notification_pending = False
              self._processing = False