summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-22 17:28:09 (GMT)
committerGitHub <noreply@github.com>2023-10-22 17:28:09 (GMT)
commit06fe8685a1af80daaad401f3e0869ec794965211 (patch)
treee66d52404d01769c67b415e1174bfcaee287a120
parentf2f89bf1c125d515fcb563460193bfb411637ba9 (diff)
downloadcpython-06fe8685a1af80daaad401f3e0869ec794965211.zip
cpython-06fe8685a1af80daaad401f3e0869ec794965211.tar.gz
cpython-06fe8685a1af80daaad401f3e0869ec794965211.tar.bz2
[3.12] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) (#111185)
gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179) * gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` * Update Doc/library/asyncio-eventloop.rst * Update Doc/library/asyncio-eventloop.rst --------- (cherry picked from commit 8c689c9b88426384a9736c708701923a1ab1da79) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
-rw-r--r--Doc/library/asyncio-eventloop.rst14
-rw-r--r--Doc/tools/.nitignore1
2 files changed, 11 insertions, 4 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 04af53b..f14fa5f 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -243,9 +243,9 @@ Scheduling callbacks
See the :ref:`concurrency and multithreading <asyncio-multithreading>`
section of the documentation.
-.. versionchanged:: 3.7
- The *context* keyword-only parameter was added. See :pep:`567`
- for more details.
+ .. versionchanged:: 3.7
+ The *context* keyword-only parameter was added. See :pep:`567`
+ for more details.
.. _asyncio-pass-keywords:
@@ -1391,6 +1391,14 @@ Enabling debug mode
The new :ref:`Python Development Mode <devmode>` can now also be used
to enable the debug mode.
+.. attribute:: loop.slow_callback_duration
+
+ This attribute can be used to set the
+ minimum execution duration in seconds that is considered "slow".
+ When debug mode is enabled, "slow" callbacks are logged.
+
+ Default value is 100 milliseconds.
+
.. seealso::
The :ref:`debug mode of asyncio <asyncio-debug-mode>`.
diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore
index e59f6d7..caf8804 100644
--- a/Doc/tools/.nitignore
+++ b/Doc/tools/.nitignore
@@ -34,7 +34,6 @@ Doc/library/__future__.rst
Doc/library/abc.rst
Doc/library/aifc.rst
Doc/library/ast.rst
-Doc/library/asyncio-dev.rst
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-extending.rst
Doc/library/asyncio-policy.rst