Skip to content
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

Update docs on terminating groups of tasks #731

Merged
merged 1 commit into from
Nov 25, 2023
Merged

Update docs on terminating groups of tasks #731

merged 1 commit into from
Nov 25, 2023

Conversation

barafael
Copy link
Contributor

As discussed :) the docs on the topic pages were not reflecting the new task tracker from tokio_util.

The previous approach was moving mpsc::Senders to tasks and dropping them when finished, thereby notifying the main task which awaits on the mpsc::Receiver.

This PR changes the example to use a Task Tracker instead.

Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nits related to wording:

content/tokio/topics/shutdown.md Outdated Show resolved Hide resolved
content/tokio/topics/shutdown.md Outdated Show resolved Hide resolved
content/tokio/topics/shutdown.md Outdated Show resolved Hide resolved
content/tokio/topics/shutdown.md Outdated Show resolved Hide resolved
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Darksonn Darksonn merged commit 79fca5a into tokio-rs:master Nov 25, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants