MCPcopy Index your code
hub / github.com/python/cpython / stop_workers

Method stop_workers

Lib/test/libregrtest/run_workers.py:521–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

519 self.live_worker_count += 1
520
521 def stop_workers(self) -> None:
522 start_time = time.monotonic()
523 for worker in self.workers:
524 worker.stop()
525 for worker in self.workers:
526 worker.wait_stopped(start_time)
527
528 def _get_result(self) -> QueueOutput | None:
529 pgo = self.runtests.pgo

Callers 1

runMethod · 0.95

Calls 2

wait_stoppedMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected