Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

In aiohttp we have HTTP keepalivve support.

A function schedules a delayed callback.
On processing a new request the callback is cancelled and rescheduled to a new 
time.

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.

----------

_______________________________________
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