mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-03 00:00:05 +02:00
signal: Replace ctrl_c with a CtrlC struct (#1273)
* Add a new `CtrlC` struct which will represent a stream of SIGINT signals on Unix or the CTRL_C event on Windows * `CtrlC` implements `Stream<Output = ()>` rather than `IoSteam` as previously
This commit is contained in:
@@ -29,5 +29,5 @@ fn dropping_loops_does_not_cause_starvation() {
|
||||
|
||||
send_signal(TEST_SIGNAL);
|
||||
|
||||
run_with_timeout(&mut rt, signal.into_future());
|
||||
let _ = run_with_timeout(&mut rt, signal.into_future());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user