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

Method __init__

example_code/item_073.py:64–68  ·  view source on GitHub ↗
(self, func, in_queue, out_queue, *args, **kwargs)

Source from the content-addressed store, hash-verified

62
63class StoppableWorker(Thread):
64 def __init__(self, func, in_queue, out_queue, *args, **kwargs):
65 super().__init__(*args, **kwargs)
66 self.func = func
67 self.in_queue = in_queue
68 self.out_queue = out_queue
69
70 def run(self):
71 while True:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected