mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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>
This commit is contained in:
parent
b3725651a2
commit
8ce1698ebf
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue