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

Merged
merged 2 commits into from Oct 17, 2021
Merged

Conversation

vanillajonathan
Copy link
Contributor

@vanillajonathan vanillajonathan commented Oct 14, 2021

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 M-signal T-docs labels Oct 15, 2021
tokio/src/signal/ctrl_c.rs Outdated Show resolved Hide resolved
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
@Darksonn
Copy link
Contributor

Darksonn commented Oct 16, 2021

Thanks!

@Darksonn Darksonn merged commit b5c1fb4 into tokio-rs:master Oct 17, 2021
27 checks passed
@vanillajonathan vanillajonathan deleted the patch-1 branch Oct 17, 2021
oliver-giersch pushed a commit to oliver-giersch/tokio that referenced this issue Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio M-signal T-docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants