pub fn call_interval<F: FnMut() -> bool + 'static>(
d: Duration,
f: F,
) -> Result<(), MainLoopError>Expand description
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