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

Method on_selectable_init

python/examples/proton_tornado.py:71–76  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

69 self._process()
70
71 def on_selectable_init(self, event):
72 sel = event.context
73 if sel.fileno() >= 0:
74 self.loop.add_handler(sel.fileno(), lambda fd, events: self._callback(sel, events), self._events(sel))
75 self._schedule(sel)
76 self.count += 1
77
78 def on_selectable_updated(self, event):
79 sel = event.context

Callers

nothing calls this directly

Calls 4

_callbackMethod · 0.95
_eventsMethod · 0.95
_scheduleMethod · 0.95
filenoMethod · 0.45

Tested by

no test coverage detected