You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add missed AsyncContextDecorator to contextlib #84993
Activity
heckad commentedon May 29, 2020
I can use context manager as decorator but can't use async context manager. Seems it because didn't implemented AsyncContextDecorator class
1st1 commentedon Jun 2, 2020
This has long been implemented: https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager
heckad commentedon Jun 6, 2020
No, please look at the pull request.
heckad commentedon Jun 18, 2020
Yury Selivanov, did you see the pull request?
belm0 commentedon Jul 17, 2020
Thank you heckad!
I'm in need of a decorating asynccontextmanager, and glad that an implementation is in the works that I can copy from in the meantime.
I hope Yuri reviews the PR before long.
asvetlov commentedon Nov 5, 2020
New changeset 178695b by Kazantcev Andrey in branch 'master':
bpo-40816 Add AsyncContextDecorator class (GH-20516)
178695b