- Adapted to API changes made in Trio v0.23:
- Call
trio.to_thread.run_sync()using theabandon_on_cancelkeyword argument instead ofcancellable - Removed a checkpoint when exiting a task group
- Renamed the
cancellableargument inanyio.to_thread.run_sync()toabandon_on_cancel(and deprecated the old parameter name) - Bumped minimum version of Trio to v0.23
- Call
- Added support for voluntary thread cancellation via
anyio.from_thread.check_cancelled() - Bumped minimum version of trio to v0.23
- Exposed the
ResourceGuardclass in the public API (#627) - Fixed
RuntimeError: Runner is closedwhen running higher-scoped async generator fixtures in some cases (#619) - Fixed discrepancy between
asyncioandtriowhere reraising a cancellation exception in anexcept*block would incorrectly bubble out of its cancel scope (#634)