It leads to a "do_dump() is never awaited" error => due to asyncio.iscoroutinefunction(), it does not consider the partial function as a coroutine.
Or maybe is there another way to do ?
I have tested the fix on Python 3.7 only.
This PR is a proposal to support coroutine as functools.partial()
This code is not working (Python 3.7):
It leads to a "do_dump() is never awaited" error => due to asyncio.iscoroutinefunction(), it does not consider the partial function as a coroutine. Or maybe is there another way to do ?
I have tested the fix on Python 3.7 only.
This PR is a proposal to support coroutine as functools.partial()