API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -119,8 +119,10 @@ def synloop(obj, connection, consumer, blueprint, hub, qos,
obj.on_ready()
while blueprint.state == RUN and obj.connection:
state.maybe_shutdown()
def _loop_cycle():
"""
Perform one iteration of the blocking event loop.
"""
if heartbeat_error[0] is not None:
raise heartbeat_error[0]
if qos.prev != qos.value:
@@ -133,3 +135,9 @@ def synloop(obj, connection, consumer, blueprint, hub, qos,
except OSError:
if blueprint.state == RUN:
raise
while blueprint.state == RUN and obj.connection:
try:
state.maybe_shutdown()
finally:
_loop_cycle()