def __init__(self, f, options=None): self._lock = threading.Lock() self._func = f self._name = f.__name__ self._ref = None self._client_side_ref = ClientSideRefID.generate_id() self._options = validate_options(options)
def __init__(self, actor_cls, options=None): self.actor_cls = actor_cls self._lock = threading.Lock() self._name = actor_cls.__name__ self._ref = None self._client_side_ref = ClientSideRefID.generate_id() self._options = validate_options(options)
def __init__(self, actor_cls, options=None): self.actor_cls = actor_cls self._lock = threading.Lock() self._name = actor_cls.__name__ self._init_signature = inspect.Signature(parameters=extract_signature( actor_cls.__init__, ignore_first=True)) self._ref = None self._client_side_ref = ClientSideRefID.generate_id() self._options = validate_options(options)
def __init__(self, stub: ClientStub, options: Optional[Dict[str, Any]]): self.remote_stub = stub self.options = validate_options(options)
def __init__(self, f, options=None): self._lock = threading.Lock() self._func = f self._name = f.__name__ self._ref = None self._options = validate_options(options)
def __init__(self, actor_cls, options=None): self.actor_cls = actor_cls self._name = actor_cls.__name__ self._ref = None self._options = validate_options(options)