Allow listening to runtime events in subscriptions
This commit is contained in:
parent
9b84b6e403
commit
98160406f7
7 changed files with 89 additions and 40 deletions
6
native/src/subscription.rs
Normal file
6
native/src/subscription.rs
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue