mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 01:51:38 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user