Hi, a usage question as the docs are quite lite on this topic.
If I want to make 5 context.run() calls concurrently but I don't want to complete execution of my function until they have all finished, is there something more elegant than this:
class AggregateError(Exception):
pass
running = [context.run(foo, async=True), context.run(bar, async=True), context.run(baz, async=True)]
while running:
for promise, index in enumerate(running[:]):
....
Hi, a usage question as the docs are quite lite on this topic.
If I want to make 5 context.run() calls concurrently but I don't want to complete execution of my function until they have all finished, is there something more elegant than this: