Sha256: 9714c7010f83c2c71e2c9f9aa5a87b9b9d69dee10926907805b183307a2bd48f
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
#![warn(rust_2018_idioms)] #![cfg(feature = "full")] #![cfg(unix)] #![cfg(not(miri))] // No `sigaction` on Miri. mod support { pub mod signal; } use support::signal::send_signal; use tokio::signal::unix::{signal, SignalKind}; #[tokio::test] async fn twice() { let kind = SignalKind::user_defined1(); let mut sig = signal(kind).expect("failed to get signal"); for _ in 0..2 { send_signal(libc::SIGUSR1); assert!(sig.recv().await.is_some()); } }
Version data entries
4 entries across 4 versions & 1 rubygems