New submission from Andrew Svetlov <andrew.svet...@gmail.com>:

Should just return self._when attribute.

I need it for testing purposes.
Without the method there is no possibility to figure out scheduled wakeup time.
An alternative is waiting for callback but the approach increases unittest 
execution time and not very reliable.

I don't like looking into `handler._when` private property, uvloop does not 
expose it.

Ned, is it possible to include the feature into Python 3.7? 
The change is safe and tiny, no backward compatibility problems etc.

----------
components: asyncio
messages: 311421
nosy: asvetlov, ned.deily, yselivanov
priority: normal
severity: normal
status: open
title: Add asyncio.TimerHandle.when() function
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to