[−][src]Function thin_main_loop::call_interval
pub fn call_interval<F: FnMut() -> bool + 'static>(
d: Duration,
f: F
) -> Result<(), MainLoopError>
Runs a function at regular intervals
Return "true" from the function to continue running or "false" to remove the callback from the main loop.
Corresponding platform specific APIs:
- glib: g_timeout_add
- node.js: setInterval
- web: window.setInterval
- win32: SetTimer