]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` (GH-111179)
authorNikita Sobolev <mail@sobolevn.me>
Sun, 22 Oct 2023 17:11:57 +0000 (20:11 +0300)
committerGitHub <noreply@github.com>
Sun, 22 Oct 2023 17:11:57 +0000 (17:11 +0000)
* gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst`

* Update Doc/library/asyncio-eventloop.rst

* Update Doc/library/asyncio-eventloop.rst

---------

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/library/asyncio-eventloop.rst
Doc/tools/.nitignore

index 361e7bb9c8f2fa8f7a8e572faf69624369df4f6d..dcdb0827daf8b7aa55165b5b68685fe96a4f7f3d 100644 (file)
@@ -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>`.
index a8c99ee5547b74e919d770b12c8b2ff93d9b790d..62e63d6d62960c9f3773667b72512caca42f58e1 100644 (file)
@@ -30,7 +30,6 @@ Doc/howto/logging.rst
 Doc/howto/urllib2.rst
 Doc/library/abc.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