class documentation

class TFWatch:

Constructor: TFWatch(facet, release)

View In Hierarchy

One consumer's interest in TF, and its lifetime.

Handed out by TFFacet.watch. Closing it lets the subscriptions close once no watch is left.

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 subscriptions if it was the last one. Idempotent.
Property closed Return whether this watch's lifetime has ended.
Instance Variable _closed Undocumented
Instance Variable _facet Undocumented
Instance Variable _release Undocumented
def __init__(self, *, facet: TFFacet, release: Callable[[TFWatch], 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 subscriptions if it was the last one. Idempotent.

@property
closed: bool =

Return whether this watch's lifetime has ended.

_closed: bool =

Undocumented

_facet =

Undocumented

_release =

Undocumented