Defer move_on_after() timer start to its use as a context manager
Open
- 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
Assessment
This issue has not been assessed yet.