stop_thread_dispatch

Function stop_thread_dispatch 

Source
pub fn stop_thread_dispatch()
Expand description

Break the events loop running on the current thread

Examples found in repository?
examples/calculator.rs (line 122)
121    fn exit(&self) {
122        nwg::stop_thread_dispatch();
123    }
More examples
Hide additional examples
examples/flexbox.rs (line 23)
22    fn exit(&self) {
23        nwg::stop_thread_dispatch();
24    }
examples/flexbox_sub_layout.rs (line 24)
23    fn exit(&self) {
24        nwg::stop_thread_dispatch();
25    }
examples/partials.rs (line 64)
63    fn exit(&self) {
64        nwg::stop_thread_dispatch();
65    }
examples/system_tray.rs (line 38)
37    fn exit(&self) {
38        nwg::stop_thread_dispatch();
39    }
examples/basic.rs (line 25)
23    fn say_goodbye(&self) {
24        nwg::modal_info_message(&self.window, "Goodbye", &format!("Goodbye {}", self.name_edit.text()));
25        nwg::stop_thread_dispatch();
26    }