SIGN IN SIGN UP

bpo-35125: remove inner callback on outer cancellation in asyncio shield (GH-10340)

When the future returned by shield is cancelled, its completion callback of the
inner future is not removed. This makes the callback list of inner inner future
grow each time a shield is created and cancelled.

This change unregisters the callback from the inner future when the outer
future is cancelled.



https://bugs.python.org/issue35125
R
Romain Picard committed
b35acc5b3a0148c5fd4462968b310fb436726d5a
Parent: f7bda5c
Committed by Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> on 5/7/2019, 6:58:24 PM