I have a function something like
async def funcn(input: input_type) -> output_type:
....
return output
I am calling it using asyncio.gather like:
output = await asyncio.gather(*[funcn(input) for input in input_list])
Here return value will be List of output for each input in the input_list.
But I want the return value to be something like [(input, output)] for each input in input_list. Is it possible somehow without changing the implementation of the function ?