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

Method __init__

example_code/item_070.py:252–256  ·  view source on GitHub ↗
(self, func, in_queue, out_queue)

Source from the content-addressed store, hash-verified

250print("Example 18")
251class StoppableWorker(Thread):
252 def __init__(self, func, in_queue, out_queue):
253 super().__init__()
254 self.func = func
255 self.in_queue = in_queue
256 self.out_queue = out_queue
257
258 def run(self):
259 while True:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected