Xinzhou Liu11/16/2023, 9:39 PM
Is there way to make the task at
results =  for i in range(10): results.append(some_task(i))
wait for the task at
to finish? And I’d like it to work locally as well as remotely.
Thomas Newton11/16/2023, 10:04 PM
I've done something similar to this before but I have not actually tested this code.
results =  for i in range(10): some_task_result = some_task(i) if len(results) > 0: results[-1] >> some_task_result results.append(some_task_result)
Yi Chiu11/16/2023, 10:05 PM
Xinzhou Liu11/16/2023, 10:21 PM