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

Method consume

Lib/test/test_queue.py:849–854  ·  view source on GitHub ↗
(self, q, results, sentinel)

Source from the content-addressed store, hash-verified

847 time.sleep(rnd.random() * 1e-3)
848
849 def consume(self, q, results, sentinel):
850 while True:
851 val = q.get()
852 if val == sentinel:
853 return
854 results.append(val)
855
856 def consume_nonblock(self, q, results, sentinel):
857 while True:

Callers 1

read_untilMethod · 0.45

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected