Function gtk::idle_add
[−]
[src]
pub fn idle_add<F>(func: F) -> SourceId where
F: FnMut() -> Continue + 'static,
Adds a closure to be called by the default main loop when it's idle.
func
will be called repeatedly until it returns Continue(false)
.
Similar to glib::idle_add
but only callable from the main thread and
doesn't require Send
.