[New-bugs-announce] [issue31556] asyncio.wait_for can cancel futures faster with timeout==0

Viktor Kovtun report at bugs.python.org
Fri Sep 22 16:47:57 EDT 2017


New submission from Viktor Kovtun:

There is no need to create extra future and use loop.call_later to cancel base future from asyncio.wait_for when timeout==0. If loop is heavy loaded it can be cancelled simnifically later then 0 seconds later.

----------
components: asyncio
messages: 302770
nosy: asvetlov, hellysmile, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.wait_for can cancel futures faster with timeout==0
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31556>
_______________________________________


More information about the New-bugs-announce mailing list