-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Add asyncio.TimerHandle.when() function #76922
Comments
Should just return self._when attribute. I need it for testing purposes. I don't like looking into Ned, is it possible to include the feature into Python 3.7? |
How will such test look like? I'm still not sure we need it. |
In aiohttp we have HTTP keepalivve support. A function schedules a delayed callback. I like to check cancellation state (now it is possible with public API) and scheduled time. I did the check with mocking but proposed method allows to do it easy and more obviously. |
OK, makes sense. Can you submit a PR? |
Let's get it into master for 3.8 first and then we'll have something to discuss. |
The PR is LGTM. Up to Ned to allow this in 3.7. I agree that the feature is (a) trivial, (b) new, so it's safe to go in 3.7. |
The PR has a "versionadded" tag. If you plan to allow this, Andrew can commit it set to 3.7... |
We have feature freezes for a good reason. But I will trust your judgement on this one. (Removing 3.6 for version list.) |
Andrew, I'm indifferent about this feature. It's entirely up to you if you want to merge it in 3.7. I already used up my allowance for post-beta1 feature merges. |
Thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: