-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
In bharel/asynciolimiter#14 we encountered an issue where both of these methods are waking up earlier than told by the clock.
It happens with both (normal event loop need to confirm) and with uvloop. In our case we've built a rate limiter, which is having issues because call later is not calling later 🤦♂️.
Should we offer the guarantee at the specification level that the scheduling will occur after the specified time, much like time.sleep()
where it says "at least secs"?
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
Linux, Windows
Linked PRs
- gh-127859: Fixed documentation for call_later and call_at regarding early wakeup. #137859
- [3.13] gh-127859: Fixed documentation for call_later and call_at for early wakeup in asyncio (GH-137859) #137907
- [3.14] gh-127859: Fixed documentation for call_later and call_at for early wakeup in asyncio (GH-137859) #137908
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done