Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added explicit information about weak and strong references
  • Loading branch information
agrommek committed May 26, 2022
commit a1b586d9b9b2bc56c032c5bdc0b3d7b9d771c890
4 changes: 3 additions & 1 deletion Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ Creating Tasks
.. important::

Save a reference to the result of this function, to avoid
a task disappearing mid execution.
a task disappearing mid execution. The event loop only keeps
weak references to all task. Without a strong reference, the
task may get garbage-collected at any time.

.. versionadded:: 3.7

Expand Down