SIGN IN SIGN UP

bpo-46771: Implement task cancel requests counter (GH-31513)

This changes cancelling() and uncancel() to return the count of pending cancellations.

This can be used to avoid bugs in certain edge cases (e.g. two timeouts going off at the same time).
T
Tin Tvrtković committed
7fce1063b6e5a366f8504e039a8ccdd6944625cd
Parent: 6e117e7
Committed by GitHub <noreply@github.com> on 2/24/2022, 2:17:00 AM