Skip to main content

pull_filtered

Function pull_filtered 

Source
pub fn pull_filtered(
    timeout: Option<Duration>,
    filter: impl FnMut(&Signal) -> bool,
) -> Option<Signal>
Expand description

Waits for a signal that filter accepts, discarding others, until the timeout (if any) runs out.