[][src]Function mogwai::utils::timeout

pub fn timeout<F>(millis: i32, logic: F) -> i32 where
    F: FnMut() -> bool + 'static, 

Sets a static rust closure to be called after a given amount of milliseconds. The given function may return whether or not this timeout should be rescheduled. If the function returns true it will be rescheduled. Otherwise it will not.