[3.7] bpo-35125: remove inner callback on outer cancellation in asyncio shield (GH-10340) by miss-islington · Pull Request #13167 · python/cpython
…eld (pythonGH-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 (cherry picked from commit b35acc5) Co-authored-by: Romain Picard <romain.picard@oakbits.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters