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

Method __init__

example_code/item_078.py:98–102  ·  view source on GitHub ↗
(self, output_path)

Source from the content-addressed store, hash-verified

96
97class WriteThread(Thread):
98 def __init__(self, output_path):
99 super().__init__()
100 self.output_path = output_path
101 self.output = None
102 self.loop = asyncio.new_event_loop()
103
104 def run(self):
105 asyncio.set_event_loop(self.loop)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected