Message346517
Got you.
iscoroutinefunction() is not reliable: it detects async functions only but fails if we have a regular function that returns awaitable object.
I think AsyncContextDecorator is needed here to explicitly point that you want to wrap async function.
Another question is: sync or async context manager should be applied? I see use cases for both variants |
|
Date |
User |
Action |
Args |
2019-06-25 12:17:15 | asvetlov | set | recipients:
+ asvetlov, yselivanov, xtreak, John Belmonte |
2019-06-25 12:17:15 | asvetlov | set | messageid: <1561465035.79.0.0141726709176.issue37398@roundup.psfhosted.org> |
2019-06-25 12:17:15 | asvetlov | link | issue37398 messages |
2019-06-25 12:17:15 | asvetlov | create | |
|