]> granicus.if.org Git - python/commit
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 5 Jul 2014 13:29:41 +0000 (15:29 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 5 Jul 2014 13:29:41 +0000 (15:29 +0200)
commita9acbe82e7822e555b669139fdd8a7cb7667492c
tree6d0d3962f744ab352e231cc2aba1874531f947bb
parent5021cb553c2c6bf7219882c36b9f6b2bdee5bd24
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
of a Future with call_soon(). Add an helper, a private method, to set the
result only if the future was not cancelled.
Lib/asyncio/coroutines.py
Lib/asyncio/futures.py
Lib/asyncio/proactor_events.py
Lib/asyncio/queues.py
Lib/asyncio/selector_events.py
Lib/asyncio/tasks.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_tasks.py