summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorRoger Iyengar <ri@rogeriyengar.com>2020-06-23 02:16:00 (GMT)
committerGitHub <noreply@github.com>2020-06-23 02:16:00 (GMT)
commita16d6970496cae5ecab5aaea2b416a4b77527cc2 (patch)
treeb8be8bb73c60f642cd1302da2023fec1f75f743e /Doc/glossary.rst
parentc96d00e88ead8f99bb6aa1357928ac4545d9287c (diff)
downloadcpython-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/glossary.rst')
-rw-r--r--Doc/glossary.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 6189cb0..e997d36 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -189,6 +189,10 @@ Glossary
A list of bytecode instructions can be found in the documentation for
:ref:`the dis module <bytecodes>`.
+ callback
+ A subroutine function which is passed as an argument to be executed at
+ some point in the future.
+
class
A template for creating user-defined objects. Class definitions
normally contain method definitions which operate on instances of the