MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / run

Method run

example_code/item_070.py:258–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 self.out_queue = out_queue
257
258 def run(self):
259 while True:
260 try:
261 item = self.in_queue.get()
262 except ShutDown:
263 return
264 else:
265 result = self.func(item)
266 self.out_queue.put(result)
267 self.in_queue.task_done()
268
269
270print("Example 19")

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected