agronholm / agronholm/anyio

add anyio.Sequencer to mirror trio.testing.Sequencer

未关闭
#261 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
2.5k
派生
260
平均合并
2 天 8 小时
30 天内合并 PR
19

描述

eg by copying https://github.com/python-trio/trio/blob/6754c74eacfad9cc5c92d5c24727a2f3b620624e/trio/testing/_sequencer.py#L15-L82 into the asyncio backend

but changed to use @async_generator.asynccontextmanager or @contextlib.asynccontextmanager depending on what's available

贡献指南

打开贡献指南

调研方向

Start by reading Trio's testing/_sequencer.py lines 15-82 from the linked revision, then inspect AnyIO's asyncio backend. Implement the corresponding anyio.Sequencer there, using async_generator.asynccontextmanager or contextlib.asynccontextmanager as available; done means the asyncio backend mirrors the referenced Trio behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。