Skip to main content

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 130)
129    fn exit(&self) {
130        nwg::stop_thread_dispatch();
131    }
More examples
Hide additional examples
examples/flexbox.rs (line 21)
20    fn exit(&self) {
21        nwg::stop_thread_dispatch();
22    }
examples/flexbox_sub_layout.rs (line 22)
21    fn exit(&self) {
22        nwg::stop_thread_dispatch();
23    }
examples/partials.rs (line 74)
73    fn exit(&self) {
74        nwg::stop_thread_dispatch();
75    }
examples/system_tray.rs (line 41)
40    fn exit(&self) {
41        nwg::stop_thread_dispatch();
42    }
examples/message_bank.rs (line 67)
61    fn exit(&self) {
62        let handlers = self.handlers.borrow();
63        for handler in handlers.iter() {
64            nwg::unbind_event_handler(&handler);
65        }
66
67        nwg::stop_thread_dispatch();
68    }