MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / start

Method start

asyncpg/_testbase/fuzzer.py:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 stop_event_task.cancel()
56
57 def start(self):
58 started = threading.Event()
59 self.thread = threading.Thread(
60 target=self._start_thread, args=(started,))
61 self.thread.start()
62 if not started.wait(timeout=2):
63 raise RuntimeError('fuzzer proxy failed to start')
64
65 def stop(self):
66 self.loop.call_soon_threadsafe(self._stop)

Callers 3

start_clusterMethod · 0.45
setup_clusterMethod · 0.45
setUpClassMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected