Return true if the object is a coroutine function. Coroutine functions are defined with "async def" syntax.
(obj)
| 407 | return _has_code_flag(obj, CO_GENERATOR) |
| 408 | |
| 409 | def iscoroutinefunction(obj): |
| 410 | """Return true if the object is a coroutine function. |
| 411 | |
| 412 | Coroutine functions are defined with "async def" syntax. |
| 413 | """ |
| 414 | return _has_code_flag(obj, CO_COROUTINE) |
| 415 | |
| 416 | def isasyncgenfunction(obj): |
| 417 | """Return true if the object is an asynchronous generator function. |
no test coverage detected