pub fn pull_filtered( timeout: Option<Duration>, filter: impl FnMut(&Signal) -> bool, ) -> Option<Signal>
Waits for a signal that filter accepts, discarding others, until the timeout (if any) runs out.
filter