MCPcopy Index your code
hub / github.com/ray-project/ray / empty

Method empty

python/ray/util/queue.py:77–79  ·  view source on GitHub ↗

Whether the queue is empty.

(self)

Source from the content-addressed store, hash-verified

75 return self.size()
76
77 def empty(self) -> bool:
78 """Whether the queue is empty."""
79 return ray.get(self.actor.empty.remote())
80
81 def full(self) -> bool:
82 """Whether the queue is full."""

Callers 15

test_batchMethod · 0.45
test_batch_timingMethod · 0.45
prefill_queueFunction · 0.45
workerFunction · 0.45
wait_for_batchMethod · 0.45
__call__Method · 0.45
__next__Method · 0.45
_wait_for_resultMethod · 0.45

Calls 2

getMethod · 0.65
remoteMethod · 0.45

Tested by 15

test_batchMethod · 0.36
test_batch_timingMethod · 0.36
__next__Method · 0.36
_wait_for_resultMethod · 0.36
__anext__Method · 0.36
test_basicMethod · 0.36
verifyMethod · 0.36