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

Add example with background listener #4171

Merged
merged 2 commits into from Oct 17, 2021
Merged

Conversation

vanillajonathan
Copy link
Contributor

Motivation

Easier to get started with a example for the common scenario of having the Ctrl+C handler listen in the background.

Solution

An example code snippet that shows how its done.

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-signal Module: tokio/signal T-docs Topic: documentation labels Oct 15, 2021
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
@Darksonn
Copy link
Contributor

Thanks!

@Darksonn Darksonn merged commit b5c1fb4 into tokio-rs:master Oct 17, 2021
@vanillajonathan vanillajonathan deleted the patch-1 branch October 17, 2021 21:39
oliver-giersch pushed a commit to oliver-giersch/tokio that referenced this pull request Oct 28, 2021
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-signal Module: tokio/signal T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants