8000 gh-94972: document that shield users need to keep a reference to their task by graingert · Pull Request #94973 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-94972: document that shield users need to keep a reference to their task #94973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
correct mid execution typo, the correct spelling is mid-execution
  • Loading branch information
graingert committed Jul 19, 2022
commit 8ffb38c5f4e55779f0af13597e255308bfd4c728
2 changes: 1 addition & 1 deletion Doc/library/asyncio-future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Future Functions
preferred way for creating new Tasks.

Save a reference to the result of this function, to avoid
a task disappearing mid execution.
a task disappearing mid-execution.

.. versionchanged:: 3.5.1
The function accepts any :term:`awaitable` object.
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Creating Tasks
.. important::

Save a reference to the result of this function, to avoid
a task disappearing mid execution. The event loop only keeps
a task disappearing mid-execution. The event loop only keeps
weak references to tasks. A task that isn't referenced elsewhere
may get garbage collected at any time, even before it's done.
For reliable "fire-and-forget" background tasks, gather them in
Expand Down Expand Up @@ -553,7 +553,7 @@ Shielding From Cancellation
.. important::

Save a reference to tasks passed to this function, to avoid
a task disappearing mid execution. The event loop only keeps
a task disappearing mid-execution. The event loop only keeps
weak references to tasks. A task that isn't referenced elsewhere
may get garbage collected at any time, even before it's done.
For reliable "fire-and-forget" background tasks, gather them in
Expand Down
0