diff options
author | 2020-02-04 03:28:47 +0100 | |
---|---|---|
committer | 2020-02-04 03:28:47 +0100 | |
commit | 6d46833eb2a068bd3655859ea828dad04293e5ba (patch) | |
tree | 42cbe1d9a65a2e03e63887611251ed8532f49872 /winit/src | |
parent | f5186f31f1e5eed8fe20c5d6e62e2f531fee6365 (diff) | |
download | iced-6d46833eb2a068bd3655859ea828dad04293e5ba.tar.gz iced-6d46833eb2a068bd3655859ea828dad04293e5ba.tar.bz2 iced-6d46833eb2a068bd3655859ea828dad04293e5ba.zip |
Support event subscriptions in `iced_web`
Also improves the overall web runtime, avoiding nested update loops.
Diffstat (limited to 'winit/src')
-rw-r--r-- | winit/src/proxy.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winit/src/proxy.rs b/winit/src/proxy.rs index cff9df33..cff6ca72 100644 --- a/winit/src/proxy.rs +++ b/winit/src/proxy.rs @@ -1,4 +1,5 @@ use iced_native::futures::{ + channel::mpsc, task::{Context, Poll}, Sink, }; @@ -23,7 +24,7 @@ impl<Message: 'static> Proxy<Message> { } impl<Message: 'static> Sink<Message> for Proxy<Message> { - type Error = core::convert::Infallible; + type Error = mpsc::SendError; fn poll_ready( self: Pin<&mut Self>, |