◐ Shell
clean mode source ↗

gh-116720: Fix corner cases of taskgroups by gvanrossum · Pull Request #117407 · python/cpython

@bedevere-app Bot mentioned this pull request

Mar 31, 2024

agronholm

This fixes the one failing test in test_timeouts.
Surprisingly, it doesn't break any other asyncio tests.

@gvanrossum

willingc

willingc

Also switch to consistently using internal/external
instead of inside/outside.

willingc

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request

Apr 17, 2024
This prevents external cancellations of a task group's parent task to
be dropped when an internal cancellation happens at the same time.
Also strengthen the semantics of uncancel() to clear self._must_cancel
when the cancellation count reaches zero.

Co-Authored-By: Tin Tvrtković <tinchester@gmail.com>
Co-Authored-By: Arthur Tacca

This was referenced

Sep 28, 2024