Skip to content
PACKAGES

GraphReentryQueue

Kind: class

Source: src/graphrefly/_facade.py:761

GraphReentryQueue(*, owner_thread: int, lifetime: _GraphLifetime, _token: object | None = None)

Owner-thread drain gate for GraphReFly-owned async completions.

NameTypeDescription
closedboolReturn whether this re-entry queue has been closed.
pending_countintReturn the number of private completions waiting to drain.
wrap_runner(runner: AsyncRunner) -> AsyncRunner

Return an AsyncRunner adapter whose completions are drained by this queue.

Source: src/graphrefly/_facade.py:798

drain(max_items: int | None = None) -> int

Drain queued private completions on the graph owner thread.

Source: src/graphrefly/_facade.py:806

close() -> None

Close this queue and cancel queued private completions.

Source: src/graphrefly/_facade.py:834