summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-02-04 10:33:13 -0600
committerLibravatar GitHub <noreply@github.com>2020-02-04 10:33:13 -0600
commit7b892eb3e11596925a2993bcc4175ac09ff3768a (patch)
tree781402db9c2d6ebef5e47b4f469f47eea0396b4b /src
parent12292126dcf9a6e2ac3befeb056638894afce788 (diff)
parent6d46833eb2a068bd3655859ea828dad04293e5ba (diff)
downloadiced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.gz
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.bz2
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.zip
Merge pull request #177 from hecrj/feature/web-subscriptions
Event subscriptions and custom executors for `iced_web`
Diffstat (limited to 'src')
-rw-r--r--src/application.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application.rs b/src/application.rs
index 3a526f1b..926a2986 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -233,6 +233,7 @@ where
A: Application,
{
type Message = A::Message;
+ type Executor = A::Executor;
fn new() -> (Self, Command<A::Message>) {
let (app, command) = A::new();
@@ -248,6 +249,10 @@ where
self.0.update(message)
}
+ fn subscription(&self) -> Subscription<Self::Message> {
+ self.0.subscription()
+ }
+
fn view(&mut self) -> Element<'_, Self::Message> {
self.0.view()
}