check if coroutine python code example
Example: check if coroutine python
import asyncio
asyncio.iscoroutine(obj)
asyncio.iscoroutinefunction(function)
import asyncio
asyncio.iscoroutine(obj)
asyncio.iscoroutinefunction(function)