I am used to C# Task.WhenAll function. I would like to know if there is an equivalent for python's concurrent.futures.Future
I am looking for something like this:
pool = concurrent.futures.ThreadPoolExecutor(2)
future1 = pool.submit(lambda : 1 + 1)
future2 = pool.submit(lambda : 1 + 2)
aggregated_future = when_all([future1, future2])
print aggregated_future.result() # print result as a list [2, 3]