o
    `Û·i±  ã                   @   s&   d dl mZ d dlZG dd„ dƒZdS )é    )ÚListNc                   @   s4   e Zd ZdZded fdd„Zded fdd„Zd	S )
ÚCommunicatorHandlezv
    A lightweight communicator handle used by the driver to store handles to
    the actors in the communicator.
    Úactor_handleszray.actor.ActorHandlec                 C   s
   || _ dS )z¢
        Initializes the CommunicatorHandle with the given actor handles.

        Args:
            actor_handles: A list of actor handles to be stored.
        N©Ú_actor_handles)Úselfr   © r   úb/home/ubuntu/vllm_env/lib/python3.10/site-packages/ray/experimental/channel/communicator_handle.pyÚ__init__   s   

zCommunicatorHandle.__init__Úreturnc                 C   s   | j S )z@
        Retuan all actor handles in this communicator.
        r   )r   r   r   r	   Úget_actor_handles   s   z$CommunicatorHandle.get_actor_handlesN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   r   r   r   r   r	   r      s    
þr   )Útypingr   Úrayr   r   r   r   r	   Ú<module>   s    