commit | 7fce1063b6e5a366f8504e039a8ccdd6944625cd | [log] [tgz] |
---|---|---|
author | Tin Tvrtković <tinchester@gmail.com> | Thu Feb 24 03:17:00 2022 +0100 |
committer | GitHub <noreply@github.com> | Wed Feb 23 18:17:00 2022 -0800 |
tree | 2c64b18baf6d1515d11b4959d1b1377351126104 | |
parent | 6e117e75c35507f170f6a789538136477f9f226d [diff] |
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).