mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix docs markup for asyncio current_task() and all_tasks() (GH-6089)
(cherry picked from commit b21505e710
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
ff5d21331e
commit
ee28cd57df
1 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ Task functions
|
||||||
not provided, the default event loop is used.
|
not provided, the default event loop is used.
|
||||||
|
|
||||||
|
|
||||||
.. function:: current_task(loop=None):
|
.. function:: current_task(loop=None)
|
||||||
|
|
||||||
Return the current running :class:`Task` instance or ``None``, if
|
Return the current running :class:`Task` instance or ``None``, if
|
||||||
no task is running.
|
no task is running.
|
||||||
|
@ -546,7 +546,7 @@ Task functions
|
||||||
.. versionadded:: 3.7
|
.. versionadded:: 3.7
|
||||||
|
|
||||||
|
|
||||||
.. function:: all_tasks(loop=None):
|
.. function:: all_tasks(loop=None)
|
||||||
|
|
||||||
Return a set of :class:`Task` objects created for the loop.
|
Return a set of :class:`Task` objects created for the loop.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue