Search notes:

Python: coroutine (type)

A coroutine object is created when a function declared with async def is called:
import asyncio

async def coro_func(): pass

coro_obj = coro_func()

print(type(coro_obj)) # <class 'coroutine'>

asyncio.run(coro_obj)

Index