Add eager_tasks parameter to asyncio Runner and run()
未關閉
還沒有人認領這個 Issue。
stdlib
topic-asyncio
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Feature or enhancement
Proposal:
We have an agreement that eager tasks should become defaults in asyncio eventually.
This issue implements the first step: it adds opt-in eager_tasks argument to run() function and Runner constructor.
Later we'll deprecate False value and enforce users to switch to eager tasks in their code.
See the linked discussion for details.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/make-asyncio-eager-task-factory-default/75164/10
Linked PRs
- gh-128293
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先閱讀連結的 Discourse 討論,然後在 CPython 的 asyncio 實作中定位 asyncio.run() 和 Runner 建構函式。確認針對 opt-in 引數 eager_tasks 所約定的行為,並驗證兩個入口點都依照指定方式接受並套用該引數。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100