파이썬의 asyncio를 통한 비동기 프로그래밍

기본 개념

import asyncio

def normal_func():
    return 'func'

normal_func()

>>> 'func'
async def async_func():
    return 'func'

async_func()

>>> <coroutine object async_func at 0x105756740>
await async_func()

>>> 'func'

Gather

await asyncio.gather(
        find_user_async(3),
        find_user_async(2),
        find_user_async(1),
    )