]> granicus.if.org Git - python/commit
(Merge 3.4) asyncio, Tulip issue 201: Fix a race condition in wait_for()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Aug 2014 09:19:46 +0000 (11:19 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Aug 2014 09:19:46 +0000 (11:19 +0200)
commite6128a4a807aa5117fa08b1b1ba8cfd437b995fb
treeba9c2460a9f0b199d6d32b20cfe14cec8c16ae86
parenta232613679883b94ecd185c040325755b0de4c0f
parent59e0802301e907873e392e0b25917fd0007a6252
(Merge 3.4) asyncio, Tulip issue 201: Fix a race condition in wait_for()

Don't raise a TimeoutError if we reached the timeout and the future completed
in the same iteration of the event loop. A side effect of the bug is that
Queue.get() looses items.