Skip to main content

run_event_loop_until_quit

Function run_event_loop_until_quit 

Source
pub fn run_event_loop_until_quit() -> Result<(), PlatformError>
Expand description

Similar to run_event_loop(), but this function continues to run even when no windows or system tray icons are visible, until quit_event_loop() is called.

Use this for daemon-style programs that wait on callbacks without any visible UI. A program with at least one visible window or SystemTrayIcon can use run_event_loop() instead, since either keeps the loop alive.