Allow Application::run to return on native platforms
This commit is contained in:
parent
aeec0375f0
commit
08c771fa70
3 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue