brainsqueeze's picture
Upload 36 files
a0e37e2 verified
raw
history blame contribute delete
285 Bytes
import asyncio
def async_tasks(*tasks):
async def gather(*t):
t = [await _ for _ in t]
return await asyncio.gather(*t)
loop = asyncio.new_event_loop()
results = loop.run_until_complete(gather(*tasks))
loop.stop()
loop.close()
return results