Function glib::source::idle_source_new
[−]
[src]
pub fn idle_source_new<'a, N: Into<Option<&'a str>>, F>(
name: N,
priority: Priority,
func: F
) -> Source where
F: FnMut() -> Continue + Send + 'static,
Adds a closure to be called by the main loop the return Source
is attached to when it's idle.
func
will be called repeatedly until it returns Continue(false)
.