I have a hypothetical asyncio.gather scenario:
await asyncio.gather(
cor1,
[cor2, cor3],
cor4,
)
I'd like cor2 and cor3 to be executed in order here. Is there some shortcut way of doing other than defining an outside coroutine like this:
async def cor2_cor3():
await cor2
await cor3
await asyncio.gather(
cor1,
cor2_cor3,
cor4,
)
Is there a cleaner shortcut for this?