]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-127859: Fixed documentation for call_later and call_at for early wakeup...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Aug 2025 11:27:30 +0000 (13:27 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Aug 2025 11:27:30 +0000 (14:27 +0300)
Co-authored-by: Bar Harel <bzvi7919@gmail.com>
Doc/library/asyncio-eventloop.rst

index d8dd03aba5c74a9c98ea640f074735c6dfaf275f..54103a438c85539ec4e1d89620230d5f24bb4f9f 100644 (file)
@@ -298,6 +298,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.
@@ -318,6 +324,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.