diff options
author | Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> | 2021-11-15 22:30:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 22:30:28 (GMT) |
commit | c750adbe6990ee8239b27d5f4591283a06bfe862 (patch) | |
tree | 34e1a1820a876230ce4d1f939defc79171cfd259 /Doc/library/asyncio-future.rst | |
parent | 6c5a312fb6d92e879bf4c570b94e18bb9ffe5970 (diff) | |
download | cpython-c750adbe6990ee8239b27d5f4591283a06bfe862.zip cpython-c750adbe6990ee8239b27d5f4591283a06bfe862.tar.gz cpython-c750adbe6990ee8239b27d5f4591283a06bfe862.tar.bz2 |
Save a reference for ensure_future and create_task (GH-29163)
Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>
Diffstat (limited to 'Doc/library/asyncio-future.rst')
-rw-r--r-- | Doc/library/asyncio-future.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/asyncio-future.rst b/Doc/library/asyncio-future.rst index ef496a2..3496387 100644 --- a/Doc/library/asyncio-future.rst +++ b/Doc/library/asyncio-future.rst @@ -54,6 +54,9 @@ Future Functions 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. + .. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object. |