mirror of
https://github.com/wassname/ray.git
synced 2026-08-20 12:40:44 +08:00
[api] Second round of 1.0 API changes: exceptions, num_return_vals (#10377)
This commit is contained in:
@@ -47,7 +47,7 @@ And vary the number of return values for tasks (and actor methods too):
|
||||
def f(n):
|
||||
return list(range(n))
|
||||
|
||||
id1, id2 = f.options(num_return_vals=2).remote(2)
|
||||
id1, id2 = f.options(num_returns=2).remote(2)
|
||||
assert ray.get(id1) == 0
|
||||
assert ray.get(id2) == 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user