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

STINNER Victor report at bugs.python.org
Tue Jul 1 01:45:39 CEST 2014


STINNER Victor added the comment:

> "_maybe_set_result()" is not a good name. Other suggestions: "_set_result_except_cancelled", ""_set_result_ignore_cancelled".

I read again the mail thread and Guido proposed the nice name _set_result_unless_cancelled() which is very explicit. I updated my patch:
http://codereview.appspot.com/108300043

----------

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


More information about the Python-bugs-list mailing list