MCPcopy Create free account
hub / github.com/apache/qpid-proton / __init__

Method __init__

python/proton/_selectable.py:33–46  ·  view source on GitHub ↗
(
            self,
            delegate: Optional[Union['EventInjector', 'socket']],
            reactor: 'Container',
    )

Source from the content-addressed store, hash-verified

31class Selectable(object):
32
33 def __init__(
34 self,
35 delegate: Optional[Union['EventInjector', 'socket']],
36 reactor: 'Container',
37 ) -> None:
38 self._delegate = delegate
39 self.reading = False
40 self.writing = False
41 self._deadline = 0
42 self._terminal = False
43 self._released = False
44 self._terminated = False
45 self._reactor = reactor
46 self.push_event(self, Event.SELECTABLE_INIT)
47
48 def close(self) -> None:
49 if self._delegate and not self._released:

Callers

nothing calls this directly

Calls 1

push_eventMethod · 0.95

Tested by

no test coverage detected