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

Method _read_msg_thread

Lib/test/test_queue.py:343–357  ·  view source on GitHub ↗
(self, q, results, barrier_start)

Source from the content-addressed store, hash-verified

341 results.append(True)
342
343 def _read_msg_thread(self, q, results, barrier_start):
344 # Get at least one item.
345 q.get(True)
346 q.task_done()
347 # Wait for the barrier to be complete.
348 barrier_start.wait()
349 while True:
350 try:
351 q.get(False)
352 q.task_done()
353 except self.queue.ShutDown:
354 results.append(True)
355 break
356 except self.queue.Empty:
357 pass
358
359 def _shutdown_thread(self, q, results, event_end, immediate):
360 event_end.wait()

Callers

nothing calls this directly

Calls 4

getMethod · 0.45
task_doneMethod · 0.45
waitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected