MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get

Method _get

Lib/test/test_queue.py:423–431  ·  view source on GitHub ↗
(self, q, go, results, shutdown=False)

Source from the content-addressed store, hash-verified

421 return self._shutdown_all_methods_in_many_threads(True)
422
423 def _get(self, q, go, results, shutdown=False):
424 go.wait()
425 try:
426 msg = q.get()
427 results.append(not shutdown)
428 return not shutdown
429 except self.queue.ShutDown:
430 results.append(shutdown)
431 return shutdown
432
433 def _get_shutdown(self, q, go, results):
434 return self._get(q, go, results, True)

Callers 2

_get_shutdownMethod · 0.95
_getMethod · 0.45

Calls 3

waitMethod · 0.45
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected