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

Make TokenBucket::close into a destructor #6032

Merged
merged 3 commits into from
Sep 24, 2023

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Sep 23, 2023

This makes the TokenBucket::close method into a destructor so you can't forget to kill the task.

Follow up to #5978. I didn't think of this when I reviewed the original PR.

cc @maminrayej

Rendered

@Darksonn Darksonn added T-docs Topic: documentation A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Sep 23, 2023
@Darksonn Darksonn requested a review from hds September 23, 2023 20:11
@github-actions github-actions bot added the R-loom-sync Run loom sync tests on this PR label Sep 23, 2023
Copy link
Contributor

@hds hds left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Darksonn Darksonn merged commit 02aacf5 into tokio-rs:master Sep 24, 2023
69 checks passed
@Darksonn Darksonn deleted the alice/close-token branch September 24, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync R-loom-sync Run loom sync tests on this PR T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants