Glenn Langford added the comment:

An idea for a different possible fix - rather than cleaning up waiters in 
wait() and as_completed(), could they be removed in Future.set_result() and 
Futures.set_exception() ? 

I'm not certain if any waiter should ever be notified twice; if not, perhaps 
set_result() and set_exception() could just include

self._waiters = []

after all waiters have been signalled.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20319>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to