mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 18:06:25 +08:00
[docs] Update actors.rst (#13873)
Add "ray.get" when calling the actor method.
This commit is contained in:
@@ -105,7 +105,7 @@ Methods of the actor can be called remotely.
|
||||
|
||||
counter_actor = Counter.remote()
|
||||
|
||||
assert counter_actor.increment.remote() == 1
|
||||
assert ray.get(counter_actor.increment.remote()) == 1
|
||||
|
||||
@ray.remote
|
||||
class Foo(object):
|
||||
|
||||
Reference in New Issue
Block a user