X Tutup
The Wayback Machine - https://web.archive.org/web/20221218082951/https://github.com/python/cpython/pull/100284
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make asyncio timeout context decorator #100284

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

alex-janss
Copy link

@alex-janss alex-janss commented Dec 15, 2022

gh-100283: asyncio.timeout and asyncio.timeout_at are now contextlib.AsyncContextDecorators

closes #100283

ajanss added 2 commits Dec 15, 2022
It would be convenient to be able to use the asyncio timeout context managers
as decorators also. This change will allow asyncio.timeout and asyncio.timeout_at
to be used as decorators.
@bedevere-bot
Copy link

bedevere-bot commented Dec 15, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Dec 15, 2022

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

@alex-janss alex-janss marked this pull request as draft Dec 16, 2022
@bedevere-bot
Copy link

bedevere-bot commented Dec 16, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bedevere-bot
Copy link

bedevere-bot commented Dec 16, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@bedevere-bot
Copy link

bedevere-bot commented Dec 16, 2022

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@python python deleted a comment from netlify bot Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

asyncio.timeout could be used as a decorator
2 participants
X Tutup