Message209741
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. |
|
Date |
User |
Action |
Args |
2014-01-30 22:26:00 | glangford | set | recipients:
+ glangford, tim.peters, bquinlan, mark.dickinson, vstinner, sbt |
2014-01-30 22:26:00 | glangford | set | messageid: <1391120760.67.0.250291382963.issue20319@psf.upfronthosting.co.za> |
2014-01-30 22:26:00 | glangford | link | issue20319 messages |
2014-01-30 22:26:00 | glangford | create | |
|