MCPcopy Create free account
hub / github.com/instantdb/instant / _drain_queue

Function _drain_queue

client/packages/python/tests/test_subscription_state.py:145–149  ·  view source on GitHub ↗
(sub: AsyncSubscription)

Source from the content-addressed store, hash-verified

143
144
145def _drain_queue(sub: AsyncSubscription) -> list:
146 items = []
147 while not sub._queue.empty():
148 items.append(sub._queue.get_nowait())
149 return items
150
151
152async def test_first_connect_failure_emits_error_and_ends(monkeypatch):

Calls

no outgoing calls

Tested by

no test coverage detected