Skip to content

Commit 8ce1698

Browse files
[3.13] gh-127859: Fixed documentation for call_later and call_at for early wakeup in asyncio (GH-137859) (#137907)
Co-authored-by: Bar Harel <bzvi7919@gmail.com>
1 parent b372565 commit 8ce1698

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ clocks to track time.
298298
custom :class:`contextvars.Context` for the *callback* to run in.
299299
The current context is used when no *context* is provided.
300300

301+
.. note::
302+
303+
For performance, callbacks scheduled with :meth:`loop.call_later`
304+
may run up to one clock-resolution early (see
305+
``time.get_clock_info('monotonic').resolution``).
306+
301307
.. versionchanged:: 3.7
302308
The *context* keyword-only parameter was added. See :pep:`567`
303309
for more details.
@@ -318,6 +324,12 @@ clocks to track time.
318324
An instance of :class:`asyncio.TimerHandle` is returned which can
319325
be used to cancel the callback.
320326

327+
.. note::
328+
329+
For performance, callbacks scheduled with :meth:`loop.call_at`
330+
may run up to one clock-resolution early (see
331+
``time.get_clock_info('monotonic').resolution``).
332+
321333
.. versionchanged:: 3.7
322334
The *context* keyword-only parameter was added. See :pep:`567`
323335
for more details.

0 commit comments

Comments
 (0)