Mention that calling some_function.remote() is non-blocking (#7417)

* Mention that calling some_function.remote() is non-blocking.

* Apply suggestions from code review

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Richard Liaw
2020-03-04 13:35:46 -08:00
committed by GitHub
parent beddaf65b4
commit c7f0b303f3
+3
View File
@@ -82,6 +82,9 @@ This causes a few changes in behavior:
for _ in range(4):
remote_function.remote()
The invocations are executed in parallel because the call to ``remote_function.remote()`` doesn't block.
All computation is performed in the background, driven by Ray's internal event loop.
See the `ray.remote package reference <package-ref.html>`__ page for specific documentation on how to use ``ray.remote``.
**Object IDs** can also be passed into remote functions. When the function actually gets executed, **the argument will be a retrieved as a regular Python object**. For example, take this function: