Function is_main_loop_set

Source
pub fn is_main_loop_set() -> bool
Expand description

It returns true if the main loop function is set, and false if the main loop function isn’t set.

§Examples

if is_main_loop_set() {
    println!("It's set. It may be paused, but that should be pretty rare.");
}