mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 18:39:41 +08:00
Update advanced.rst (#11793)
This commit is contained in:
@@ -77,7 +77,7 @@ When you have multiple tasks that need to wait on some condition, you can use a
|
||||
signal = SignalActor.remote()
|
||||
tasks = [wait_and_go.remote(signal) for _ in range(4)]
|
||||
print("ready...")
|
||||
# Tasks will all be waiting for the singals.
|
||||
# Tasks will all be waiting for the signals.
|
||||
print("set..")
|
||||
ray.get(signal.send.remote())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user