Allow listening to runtime events in subscriptions

This commit is contained in:
Héctor Ramón Jiménez 2019-12-08 08:21:26 +01:00
parent 9b84b6e403
commit 98160406f7
7 changed files with 89 additions and 40 deletions

View file

@ -0,0 +1,6 @@
use crate::Event;
pub type Subscription<T> = iced_core::Subscription<Input, T>;
pub type Input = futures::channel::mpsc::Receiver<Event>;
pub use iced_core::subscription::Connection;