[docs] Update actors.rst (#13873)

Add "ray.get" when calling the actor method.
This commit is contained in:
Haoyuan Ge
2021-02-04 01:51:53 +08:00
committed by GitHub
parent a695c651ee
commit 875ea3fe1d
+1 -1
View File
@@ -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):