Function gtk_test::wait_until_done
source · pub fn wait_until_done<F: FnMut() -> bool>(f: F)
Expand description
Wait until the given condition returns true
.
Example:
extern crate gtk;
extern crate gtk_test;
gtk::init().expect("GTK init failed");
let mut x = 0;
gtk_test::wait_until_done(move || {
x += 1;
x > 10
});