-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
TaskVinebugFor modifications that fix a flaw in the code.For modifications that fix a flaw in the code.
Milestone
Description
Consider:
fs = []
for i in range(3):
f = executor.submit(executor.future_funcall("test-library", "my_double", i))
fs.append(f)
fl = executor.submit(executor.future_task(my_list, *fs))
print(fl.result())The expected output is: [0, 2, 3].
Instead we get:
[{'Result': 0, 'Success': True, 'Reason': None}, {'Result': 2, 'Success': True, 'Reason': None}, {'Result': 4, 'Success': True, 'Reason': None}]
For:
fs = []
for i in range(3):
f = executor.submit(executor.future_task(my_double, i))
fs.append(f)
fl = executor.submit(executor.future_funcall("test-library", "my_list", *fs))
print(fl.result())we get the exception:
ndcctools.taskvine.task.FunctionCallNoResult
Metadata
Metadata
Assignees
Labels
TaskVinebugFor modifications that fix a flaw in the code.For modifications that fix a flaw in the code.