]> granicus.if.org Git - python/commit
asyncio, Tulip issue 201: Fix a race condition in wait_for()
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Aug 2014 09:19:25 +0000 (11:19 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 28 Aug 2014 09:19:25 +0000 (11:19 +0200)
commit59e0802301e907873e392e0b25917fd0007a6252
tree4dd13d5fedbe52b2e7327a46c91ebac0ec29e4e3
parentfeac3980ced0d80dc21982d87658876644c60e72
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.
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_tasks.py