Skip to content

Instantly share code, notes, and snippets.

View mkschulze's full-sized avatar
🦎

M. Schulze mkschulze

🦎
View GitHub Profile
class Channel(six.with_metaclass(abc.ABCMeta)):
"""Affords RPC invocation via generic methods on client-side.
Channel objects implement the Context Manager type, although they need not
support being entered and exited multiple times.
"""
@abc.abstractmethod
def subscribe(self, callback, try_to_connect=False):
"""Subscribe to this Channel's connectivity state machine.
A Channel may be in any of the states described by ChannelConnectivity.
define
finance sub relation,
relates allocates,
relates includes;
element sub relation,
relates holdselement,
relates iselementof;