summaryrefslogtreecommitdiffstats
path: root/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-10-17 08:46:16 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-10-17 08:46:16 +0200
commitae5a2502d676f6065315b19132430243575e934b (patch)
treef66da002e7e0777f6302a64b18dc4f103293420f /src/application.rs
parent17f0db57c3be440642a057e0a53106fcecdf4564 (diff)
downloadiced-ae5a2502d676f6065315b19132430243575e934b.tar.gz
iced-ae5a2502d676f6065315b19132430243575e934b.tar.bz2
iced-ae5a2502d676f6065315b19132430243575e934b.zip
Remove `executor::Null` from the root public API
Using an `Application` with `executor::Null` does not make sense, as the whole purpose of an `Application` is to allow executing async actions. When async actions are not needed, `Sandbox` should be used instead.
Diffstat (limited to 'src/application.rs')
-rw-r--r--src/application.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application.rs b/src/application.rs
index d46cd2ac..d9e25ad4 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -65,7 +65,7 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
/// struct Hello;
///
/// impl Application for Hello {
-/// type Executor = executor::Null;
+/// type Executor = executor::Default;
/// type Message = ();
/// type Flags = ();
///