MCPcopy Create free account
hub / github.com/google-research/language / _shutdown_queue

Method _shutdown_queue

language/realm/parallel.py:108–111  ·  view source on GitHub ↗

Shuts down the multiprocessing Queue.

(self, q)

Source from the content-addressed store, hash-verified

106 self._worker_processes.append(process)
107
108 def _shutdown_queue(self, q):
109 """Shuts down the multiprocessing Queue."""
110 q.close()
111 q.join_thread()
112
113 def shutdown(self):
114 """Shuts down all relevant resources."""

Callers 1

shutdownMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected