agronholm / agronholm/anyio

Defer move_on_after() timer start to its use as a context manager

オープン
#1,298 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2.5k
フォーク
260
平均マージ
2日 8時間
マージ済み PR(30日)
19

説明

Due to a historical mistake, `move_on_after()` returned a cancel scope directly, and the deadline got computed on the initial call. This does not line up with `fail_after()` which correctly defers the deadline computation to when the context manager is actually entered. This is a breaking change.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Read the move_on_after() and fail_after() entry points and compare when each computes its deadline relative to context-manager entry. Done means move_on_after() starts its timer when the context manager is entered, matching fail_after(), while preserving the explicitly noted breaking-change behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。