Ben Mather <bwhmat...@bwhmather.com> added the comment:

@Nathaniel
RE `remove_done_callback`:  This was added as an optimisation to allow the 
`as_completed` iterator to remove callbacks for future that it has visited 
instead of having to store a separate set of visited futures and ignore them 
when their callbacks are triggered.

This matches how the private waiters mechanism works.

It might be worth submitting the core of this change without 
`remove_done_callback` and then discussing it later as a separate optimisation. 
 I will experiment.

----------

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

Reply via email to