Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_worker_finished_after_all_threads_finish
Function · 0.95
test_check_deprecate_placement_group
Method · 0.45
test_batch
Method · 0.45
test_batch_timing
Method · 0.45
test_batch_last_return_is_immediate
Method · 0.45
test_batch_no_interval
Method · 0.45
prefill_queue
Function · 0.45
worker
Function · 0.45
wait_for_batch
Method · 0.45
__call__
Method · 0.45
__next__
Method · 0.45
_wait_for_result
Method · 0.45
Calls
2
get
Method · 0.65
remote
Method · 0.45
Tested by
15
test_worker_finished_after_all_threads_finish
Function · 0.76
test_check_deprecate_placement_group
Method · 0.36
test_batch
Method · 0.36
test_batch_timing
Method · 0.36
test_batch_last_return_is_immediate
Method · 0.36
test_batch_no_interval
Method · 0.36
__next__
Method · 0.36
_wait_for_result
Method · 0.36
__anext__
Method · 0.36
test_basic
Method · 0.36
verify
Method · 0.36
test_zero_length_arrow_tensor_array_roundtrip
Function · 0.36