I have a list of coroutines, I put them in a queue. At some point, someone else will run them. I want to wait for a specific sublist of the coroutines to finish
Code:
coro_list = [coro1(), coro2(), ...]
queue = asyncio.Queue()
for c in coro_list:
queue.put_nowait(c)
# someone else will read from the queue and await the coroutines...
# here, I want to wait, for example, only for coro_list[2:6] to finish
# ...