MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / start

Method start

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

Source from the content-addressed store, hash-verified

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

Callers 3

start_clusterMethod · 0.45
setup_clusterMethod · 0.45
setUpClassMethod · 0.45

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected