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

Method __init__

python/ray/util/queue.py:55–64  ·  view source on GitHub ↗
(self, maxsize: int = 0, actor_options: Optional[Dict] = None)

Source from the content-addressed store, hash-verified

53 """
54
55 def __init__(self, maxsize: int = 0, actor_options: Optional[Dict] = None) -> None:
56 from ray._common.usage.usage_lib import record_library_usage
57
58 record_library_usage("util.Queue")
59
60 actor_options = actor_options or {}
61 self.maxsize = maxsize
62 self.actor = (
63 ray.remote(_QueueActor).options(**actor_options).remote(self.maxsize)
64 )
65
66 def __len__(self) -> int:
67 return self.size()

Callers

nothing calls this directly

Calls 3

record_library_usageFunction · 0.90
remoteMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected