From: Victor Stinner Date: Sat, 5 Jul 2014 13:30:42 +0000 (+0200) Subject: (Merge 3.4) Closes #21886, #21447: Fix a race condition in asyncio when setting X-Git-Tag: v3.5.0a1~1343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c57548f89846389a13c6ea1c7160d95aafa7110;p=python (Merge 3.4) 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. --- 8c57548f89846389a13c6ea1c7160d95aafa7110