python/ray/actor.py
def options(self, **options):
        """Convenience method for executing an actor method call with options.

        Same arguments as func._remote(), but returns a wrapped function
        that a non-underscore .remote() can be called on.

        Examples:
            # The following two calls are equivalent.
            >>> actor.my_method._remote(args=[x, y], name="foo", num_returns=2)
            >>> actor.my_method.options(name="foo", num_returns=2).remote(x, y)
        """

        func_cls = self

        class FuncWrapper:
            def remote(self, *args, **kwargs):
                return func_cls._remote(args=args, kwargs=kwargs, **options)

        return FuncWrapper()
Convenience method for executing an actor method call with options.

        Same arguments as func._remote(), but returns a wrapped function
        that a non-underscore .remote() can be called on.

        Examples:
            # The following two calls are equivalent.
            >>> actor.my_method._remote(args=[x, y], name="foo", num_returns=2)
            >>> actor.my_method.options(name="foo", num_returns=2).remote(x, y)
        
Convenience method for executing an actor method call with options.
Same arguments as func._remote(), but returns a wrapped function
that a non-underscore .remote() can be called on.
Convenience method for executing an actor method call with options . Same arguments as func . _remote () but returns a wrapped function that a non - underscore . remote () can be called on .
def options(self, **options):
        func_cls = self
        class FuncWrapper:
            def remote(self, *args, **kwargs):
                return func_cls._remote(args=args, kwargs=kwargs, **options)
        return FuncWrapper()
def options ( self , ** options ) : func_cls = self class FuncWrapper : def remote ( self , * args , ** kwargs ) : return func_cls . _remote ( args = args , kwargs = kwargs , ** options ) return FuncWrapper ( )
Convenience method for executing an actor method call with options.
Convenience method for executing an actor method call with options .
"""Convenience method for executing an actor method call with options.

        Same arguments as func._remote(), but returns a wrapped function
        that a non-underscore .remote() can be called on.

        Examples:
            # The following two calls are equivalent.
            >>> actor.my_method._remote(args=[x, y], name="foo", num_returns=2)
            >>> actor.my_method.options(name="foo", num_returns=2).remote(x, y)
        """
self
examples
The following two calls are equivalent.
>>> actor.my_method._remote(args=[x, y], name="foo", num_returns=2)
>>> actor.my_method.options(name="foo", num_returns=2).remote(x, y)
The following two calls are equivalent . >>> actor . my_method . _remote ( args = [ x y ] name = " foo " num_returns = 2 ) >>> actor . my_method . options ( name = " foo " num_returns = 2 ) . remote ( x y )