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

Method _get_task_done

Lib/test/test_queue.py:436–445  ·  view source on GitHub ↗
(self, q, go, results)

Source from the content-addressed store, hash-verified

434 return self._get(q, go, results, True)
435
436 def _get_task_done(self, q, go, results):
437 go.wait()
438 try:
439 msg = q.get()
440 q.task_done()
441 results.append(True)
442 return msg
443 except self.queue.ShutDown:
444 results.append(False)
445 return False
446
447 def _put(self, q, msg, go, results, shutdown=False):
448 go.wait()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected