8000 gh-94972: document that shield users need to keep a reference to their task by hendrikmakait · Pull Request #96724 · 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 #96724

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

Merged
merged 7 commits into from
Sep 10, 2022
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
Prev Previous commit
Next Next commit
fix garbage-collected typo - the correct spelling is garbage collected
  • Loading branch information
graingert committed Jul 19, 2022
commit b16416f0b5c0afec9ff23c602c0564b8a988cc74
4 changes: 2 additions & 2 deletions Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Creating Tasks
Save a reference to the result of this function, to avoid
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.
may get garbage collected at any time, even before it's done.
For reliable "fire-and-forget" background tasks, gather them in
a collection::

Expand Down Expand Up @@ -555,7 +555,7 @@ Shielding From Cancellation
Save a reference to tasks passed to this function, to avoid
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.
may get garbage collected at any time, even before it's done.
For reliable "fire-and-forget" background tasks, gather them in
a collection.

Expand Down
0