We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio.ensure_future
1 parent 9d127e8 commit 00cf5eaCopy full SHA for 00cf5ea
Doc/library/asyncio-future.rst
@@ -51,12 +51,13 @@ Future Functions
51
52
.. important::
53
54
- See also the :func:`create_task` function which is the
55
- preferred way for creating new Tasks.
56
-
57
Save a reference to the result of this function, to avoid
58
a task disappearing mid-execution.
59
+ 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.
60
+
61
.. versionchanged:: 3.5.1
62
The function accepts any :term:`awaitable` object.
63
0 commit comments