<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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