class documentation

class GraphWatch:

Constructor: GraphWatch(facet, release)

View In Hierarchy

One consumer's view of the graph, from GraphFacet.watch. Close it so the poll can stop.

Method __aiter__ Return an iterator yielding deltas until the watch is closed.
Method __init__ Bind a watch to the facet it reads and the deregistration the facet prepared.
Method __repr__ Return a representation naming the watch's state.
Async Method close End this watch, and with it the poll if it was the last one. Idempotent.
Async Method receive Await the next change to the graph, as a delta against what this watch last received.
Method wake Tell this watch the facet has read the graph again.
Property closed Return whether this watch's lifetime has ended.
Async Method _stream Yield deltas until the watch is closed, then stop cleanly.
Instance Variable _arrival Undocumented
Instance Variable _closed Undocumented
Instance Variable _facet Undocumented
Instance Variable _release Undocumented
Instance Variable _seen Undocumented
def __aiter__(self) -> AsyncIterator[GraphDelta]:

Return an iterator yielding deltas until the watch is closed.

def __init__(self, *, facet: GraphFacet, release: Callable[[GraphWatch], None]):

Bind a watch to the facet it reads and the deregistration the facet prepared.

def __repr__(self) -> str:

Return a representation naming the watch's state.

async def close(self):

End this watch, and with it the poll if it was the last one. Idempotent.

async def receive(self) -> GraphDelta:

Await the next change to the graph, as a delta against what this watch last received.

Raises
SubscriptionClosedErrorWhen the watch has been closed.
def wake(self):

Tell this watch the facet has read the graph again.

@property
closed: bool =

Return whether this watch's lifetime has ended.

async def _stream(self) -> AsyncIterator[GraphDelta]:

Yield deltas until the watch is closed, then stop cleanly.

_arrival =

Undocumented

_closed: bool =

Undocumented

_facet =

Undocumented

_release =

Undocumented

_seen =

Undocumented