shalc
pub fn wait_for( what: impl Fn() -> bool, timeout: Option<Duration>, check_period: Duration) -> bool