mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-129169: update asyncio.ensure_future
docs to suggest taskgroups
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
9d127e83b9
commit
00cf5eacc5
1 changed files with 4 additions and 3 deletions
|
@ -51,12 +51,13 @@ Future Functions
|
|||
|
||||
.. important::
|
||||
|
||||
See also the :func:`create_task` function which is the
|
||||
preferred way for creating new Tasks.
|
||||
|
||||
Save a reference to the result of this function, to avoid
|
||||
a task disappearing mid-execution.
|
||||
|
||||
See also the :func:`create_task` function which is the
|
||||
preferred way for creating new tasks or use :class:`asyncio.TaskGroup`
|
||||
which keeps reference to the task internally.
|
||||
|
||||
.. versionchanged:: 3.5.1
|
||||
The function accepts any :term:`awaitable` object.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue