Clarify return policy of Application::run

This commit is contained in:
Héctor Ramón Jiménez 2020-04-01 00:25:33 +02:00
parent c73f23c380
commit 26a35b7d7e
3 changed files with 8 additions and 8 deletions

View File

@ -84,10 +84,10 @@ use crate::{window, Command, Element, Executor, Settings, Subscription};
pub trait Application: Sized { pub trait Application: Sized {
/// The [`Executor`] that will run commands and subscriptions. /// The [`Executor`] that will run commands and subscriptions.
/// ///
/// The [`executor::Default`] can be a good starting point! /// The [default executor] can be a good starting point!
/// ///
/// [`Executor`]: trait.Executor.html /// [`Executor`]: trait.Executor.html
/// [`executor::Default`]: executor/struct.Default.html /// [default executor]: executor/struct.Default.html
type Executor: Executor; type Executor: Executor;
/// The type of __messages__ your [`Application`] will produce. /// The type of __messages__ your [`Application`] will produce.
@ -172,8 +172,8 @@ pub trait Application: Sized {
/// Runs the [`Application`]. /// Runs the [`Application`].
/// ///
/// This method will take control of the current thread and __will NOT /// On native platforms, this method will take control of the current thread
/// return__. /// and __will NOT return__.
/// ///
/// It should probably be that last thing you call in your `main` function. /// It should probably be that last thing you call in your `main` function.
/// ///

View File

@ -115,8 +115,8 @@ pub trait Sandbox {
/// Runs the [`Sandbox`]. /// Runs the [`Sandbox`].
/// ///
/// This method will take control of the current thread and __will NOT /// On native platforms, this method will take control of the current thread
/// return__. /// and __will NOT return__.
/// ///
/// It should probably be that last thing you call in your `main` function. /// It should probably be that last thing you call in your `main` function.
/// ///

View File

@ -100,8 +100,8 @@ pub trait Application: Sized {
/// Runs the [`Application`] with the provided [`Settings`]. /// Runs the [`Application`] with the provided [`Settings`].
/// ///
/// This method will take control of the current thread and __will NOT /// On native platforms, this method will take control of the current thread
/// return__. /// and __will NOT return__.
/// ///
/// It should probably be that last thing you call in your `main` function. /// It should probably be that last thing you call in your `main` function.
/// ///