[docs] 4classRemoteLabelledActor(LabelledActor): 5"""A remote ray actor that can execute the function `func` along with a 6 label to allow an ordering of calls to be re-established. Additionally, as 7 the actor stores `func` so that copying of `func` only occurs on 8 initialisation opposed to every call of `func`. 910 Notes11 -----12 All method calls must be proceeded by ``.remote``. For example, to call the13 ``__init__`` method use:1415 .. code-block:: python1617 remote_labelled_actor = RemoteLabelledActor.remote(func)1819 To call the ``run`` method use:2021 .. code-block:: python2223 remote_labelled_actor.run.remote(label, *args)2425 This is required as the instance is a remote ``ray`` actor.26 """
[docs]27def__init__(self,func:Callable):28"""Initialises a :class:`RemoteLabelledActor`2930 Parameters31 ----------32 func : Callable33 The function saved by the actor.34 """