Merge pull request #177 from hecrj/feature/web-subscriptions

Event subscriptions and custom executors for `iced_web`
This commit is contained in:
Héctor Ramón 2020-02-04 10:33:13 -06:00 committed by GitHub
commit 7b892eb3e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 112 additions and 129 deletions

View file

@ -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>,