[issue21886] asyncio: Future.set_result() called on cancelled Future raises asyncio.futures.InvalidStateError

STINNER Victor report at bugs.python.org
Tue Jul 1 01:34:59 CEST 2014


STINNER Victor added the comment:

In https://codereview.appspot.com/69870048/ Guido proposed to test to replace:
   self._loop.call_soon(waiter.set_result, None)
with:
   if not waiter.cancelled():
      waiter.set_result(None)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21886>
_______________________________________


More information about the Python-bugs-list mailing list