@contextlib.contextmanager
    def _acquire_event_dispatch(self):
        try:
            # __enter__ part
            self._event_dispatch_suspend_depth += 1
            yield self._event_dispatch_suspend_depth == 1
        finally:
            # __exit__ part
            self._event_dispatch_suspend_depth -= 1
Context manager that controls access to event dispatcher for
dataset/ETHPy150Open pika/pika/pika/adapters/blocking_connection.py/BlockingConnection._acquire_event_dispatch