agronholm / agronholm/anyio

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

Open
#1,298 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
17

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.