diff options
author | Roger Iyengar <ri@rogeriyengar.com> | 2020-06-23 02:16:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 02:16:00 (GMT) |
commit | a16d6970496cae5ecab5aaea2b416a4b77527cc2 (patch) | |
tree | b8be8bb73c60f642cd1302da2023fec1f75f743e /Doc/library/asyncio-eventloop.rst | |
parent | c96d00e88ead8f99bb6aa1357928ac4545d9287c (diff) | |
download | cpython-a16d6970496cae5ecab5aaea2b416a4b77527cc2.zip cpython-a16d6970496cae5ecab5aaea2b416a4b77527cc2.tar.gz cpython-a16d6970496cae5ecab5aaea2b416a4b77527cc2.tar.bz2 |
Improve asyncio.loop.call_soon() documentation (GH-20883)
* Add a glossary entry for the term "callback"
* Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index d60a6ce..b1e7318 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -191,8 +191,8 @@ Scheduling callbacks .. method:: loop.call_soon(callback, *args, context=None) - Schedule a *callback* to be called with *args* arguments at - the next iteration of the event loop. + Schedule the *callback* :term:`callback` to be called with + *args* arguments at the next iteration of the event loop. Callbacks are called in the order in which they are registered. Each callback will be called exactly once. |