Allow Application::run to return on native platforms

This commit is contained in:
Andreas Hofstadler 2021-11-07 14:32:18 +01:00 committed by Héctor Ramón Jiménez
parent aeec0375f0
commit 08c771fa70
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 13 additions and 7 deletions

View file

@ -188,9 +188,9 @@ pub trait Application: Sized {
/// Runs the [`Application`].
///
/// On native platforms, this method will take control of the current thread
/// and __will NOT return__ unless there is an [`Error`] during startup.
/// until the event loop of the main window exits.
///
/// It should probably be that last thing you call in your `main` function.
/// Does never return on the web platform
///
/// [`Error`]: crate::Error
fn run(settings: Settings<Self::Flags>) -> crate::Result