mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `net` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
11 lines
200 B
Rust
11 lines
200 B
Rust
#![cfg(unix)]
|
|
#![warn(rust_2018_idioms)]
|
|
|
|
use tokio::signal::unix::{signal, SignalKind};
|
|
|
|
#[test]
|
|
#[should_panic]
|
|
fn no_runtime_panics_creating_signals() {
|
|
let _ = signal(SignalKind::hangup());
|
|
}
|