MCPcopy Create free account
hub / github.com/ActiveState/code / _onReceive

Method _onReceive

recipes/Python/578488_Threaded/recipe-578488.py:74–85  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

72 self._notify(requestId, e)
73
74 def _onReceive(self, item):
75 if item == self._readSentinel:
76 frame = item
77 self._shutdown()
78 self._writer.join()
79 requestIds = list(self._in)
80 else:
81 (requestId, frame) = item
82 requestIds = [requestId]
83
84 for requestId in requestIds:
85 self._notify(requestId, frame)
86
87 def _shutdown(self):
88 with self._lock:

Callers

nothing calls this directly

Calls 4

_shutdownMethod · 0.95
_notifyMethod · 0.95
listClass · 0.85
joinMethod · 0.45

Tested by

no test coverage detected