[][src]Function kwait::poll_immediate_infinite

pub fn poll_immediate_infinite<F>(
    interval: Duration,
    condition: F
) -> Result<(), Box<dyn Error>> where
    F: Fn() -> Result<bool, Box<dyn Error>> + Copy

poll_immediate_infinite tries a condition func until it returns true or an error

poll_immediate_infinite runs the 'condition' before waiting for the interval.

Some intervals may be missed if the condition takes too long or the time window is too short.