#330

DRAFT: anyio port

Draftmsullivanwants to merge intofrom

I wrote a long message but the gh client ate it.

A souped up decouple is used to protect async generators.

After building it I discovered that trio (but not anyio) has something analagous: as_safe_channel.

Some stuff works under trio. I've found stuff that fails though.

I'll need to think more about cancellation; running user callbacks in anyio tasks basically requires the users to use anyio if they want to do cancellation safe cleanup, which is not great. (It is possible though annoying to do cancellation safe cleanup in pure asyncio.)

Activity

15
M
340e1f9
M
5989074
M
2c6c899
M
9bf352b
vercel[bot]1mo ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated
ai-python ReadyPreview, v0Oct 27, 2026 11:48pm UTC
socket-security[bot]1mo ago

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
pypi/​anyio@​4.15.1
pypi/​typing-extensions@​4.16.0

View full report

This pull request is a draft

Merging is unavailable until it is marked ready for review.