ray.actor.ActorMethod.options#

ActorMethod.options(**options)[source]#

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)