[−][src]Function kwait::poll_infinite
pub fn poll_infinite<F>(
interval: Duration,
condition: F
) -> Result<(), Box<dyn Error>> where
F: Fn() -> Result<bool, Box<dyn Error>> + Copy,
poll_infinite tries a condition func until it returns true or an error
poll_infinite always waits the interval before the run of 'condition'.
Some intervals may be missed if the condition takes too long or the time window is too short.