diff options
| author | 2019-12-08 08:21:26 +0100 | |
|---|---|---|
| committer | 2019-12-08 08:21:26 +0100 | |
| commit | 98160406f714728afe718f305bf9d12be1676b2d (patch) | |
| tree | bf8fec3cb66bc478a021aba156d6be580586616e /native/src/subscription.rs | |
| parent | 9b84b6e40336543380312aa1b2b1091791ec25cd (diff) | |
| download | iced-98160406f714728afe718f305bf9d12be1676b2d.tar.gz iced-98160406f714728afe718f305bf9d12be1676b2d.tar.bz2 iced-98160406f714728afe718f305bf9d12be1676b2d.zip | |
Allow listening to runtime events in subscriptions
Diffstat (limited to '')
| -rw-r--r-- | native/src/subscription.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/subscription.rs b/native/src/subscription.rs new file mode 100644 index 00000000..5fa026a2 --- /dev/null +++ b/native/src/subscription.rs @@ -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; |
