value = loop.run_until_complete(task)
done, pending = loop.run_until_complete(asyncio.wait( tasks))
for future in done:
value = future.result() #may raise an exception if coroutine failed
# do something with value
async def run():
conn = await asyncpg.connect(db_url)
values = await conn.fetch('''SELECT ... FROM ... WHERE ...;''')
await conn.close()
return values