async def result_processor ( tasks ) : output = { } for task in tasks : num , res = await task output [ num ] = res return output
return response from an asynchronous call in python
An async result aggregator that combines all the results This gets executed in unsync . loop and unsync . thread
async def result_processor(tasks):
    """An async result aggregator that combines all the results
       This gets executed in unsync.loop and unsync.thread"""
    output = {}
    for task in tasks:
        num, res = await task
        output[num] = res
    return output