Closed canwushuang closed 2 months ago
A better way is to add import inspect and use inspect.iscoroutinefunction() as an alternative. https://github.com/python/cpython/issues/94912
Thank you! Yes, let's use the inspect
version (https://docs.python.org/3.10/library/inspect.html#inspect.iscoroutinefunction); could you change the PR?
function calling support coroutine function