Skip to content

gh-127859: Fixed documentation for call_later and call_at regarding early wakeup. #137859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ clocks to track time.
custom :class:`contextvars.Context` for the *callback* to run in.
The current context is used when no *context* is provided.

.. note::

For performance, callbacks scheduled with :meth:`loop.call_later`
may run up to one clock-resolution early (see
``time.get_clock_info('monotonic').resolution``).

.. versionchanged:: 3.7
The *context* keyword-only parameter was added. See :pep:`567`
for more details.
Expand All @@ -324,6 +330,12 @@ clocks to track time.
An instance of :class:`asyncio.TimerHandle` is returned which can
be used to cancel the callback.

.. note::

For performance, callbacks scheduled with :meth:`loop.call_at`
may run up to one clock-resolution early (see
``time.get_clock_info('monotonic').resolution``).

.. versionchanged:: 3.7
The *context* keyword-only parameter was added. See :pep:`567`
for more details.
Expand Down
Loading