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

Use tokio_util::sync::CancellationToken to quit service #371

Closed
wants to merge 2 commits into from
Closed

Use tokio_util::sync::CancellationToken to quit service #371

wants to merge 2 commits into from

Conversation

sword-jin
Copy link

@sword-jin sword-jin commented Jun 17, 2024

I see we have used tokio_util module, it provides a dedicated way https://docs.rs/tokio-util/latest/tokio_util/sync/struct.CancellationToken.html to cancel something.

@sword-jin sword-jin marked this pull request as draft June 17, 2024 05:37
@sword-jin sword-jin closed this Jun 17, 2024
@sword-jin sword-jin deleted the use_CancellationToken branch June 17, 2024 06:08
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.

1 participant