async def
import asyncio async def coro_func(): pass coro_obj = coro_func() print(type(coro_obj)) # <class 'coroutine'> asyncio.run(coro_obj)
Index