This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author John Belmonte
Recipients John Belmonte, Krzysztof Wróblewski, asvetlov, ncoghlan, njs, xtreak, yselivanov
Date 2021-06-26.10:41:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624704119.68.0.603864860742.issue37398@roundup.psfhosted.org>
In-reply-to
Content
> bpo-40816 took the much simpler approach of introducing a separate contextlib.AsyncContextDecorator class

How do I apply AsyncContextDecorator to the use case of wrapping either a sync or async function with a synchronous context manager?
History
Date User Action Args
2021-06-26 10:41:59John Belmontesetrecipients: + John Belmonte, ncoghlan, njs, asvetlov, yselivanov, xtreak, Krzysztof Wróblewski
2021-06-26 10:41:59John Belmontesetmessageid: <1624704119.68.0.603864860742.issue37398@roundup.psfhosted.org>
2021-06-26 10:41:59John Belmontelinkissue37398 messages
2021-06-26 10:41:59John Belmontecreate