mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
parent
7b86acb71d
commit
e07a03b3c5
@ -22,12 +22,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
let mut counter = 0;
|
let mut counter = 0;
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"This program is now waiting for you to press Ctrl+C {0} times.
|
"This program is now waiting for you to press Ctrl+C {0} times. \
|
||||||
* If running via `cargo run --example ctrl-c`, Ctrl+C also kills it, \
|
Terminate by repeating Ctrl+C {0} times, or ahead of time by opening \
|
||||||
due to https://github.com/rust-lang-nursery/rustup.rs/issues/806
|
a second terminal and issuing `pkill -sigkil ctrl-c`.",
|
||||||
* If running the binary directly, the Ctrl+C is properly trapped.
|
|
||||||
Terminate by repeating Ctrl+C {0} times, or ahead of time by \
|
|
||||||
opening a second terminal and issuing `pkill -sigkil ctrl-c`",
|
|
||||||
STOP_AFTER
|
STOP_AFTER
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user