agronholm / anyio

High level asynchronous concurrency and networking framework that works on top of either trio or asyncio
MIT License
1.78k stars 135 forks source link

Fix `TaskInfo.has_pending_cancellation()` false positives on asyncio with shielding #772

Closed gschaffner closed 1 month ago

gschaffner commented 1 month ago

Changes

Fixes #771.

Checklist

If this is a user-facing code change, like a bugfix or a new feature, please ensure that you've fulfilled the following conditions (where applicable):

gschaffner commented 1 month ago

Thank you!