diff options
author | 2020-01-19 09:06:48 +0100 | |
---|---|---|
committer | 2020-01-19 09:06:48 +0100 | |
commit | d50ff9b5d97d9c3d6c6c70a9b4efe764b6126c86 (patch) | |
tree | e5d176cddb6ef341d4050effc490e98988cf22d9 /core/src/subscription | |
parent | 32f7ca261f0655938ae7c8919599b020ddea8ff8 (diff) | |
download | iced-d50ff9b5d97d9c3d6c6c70a9b4efe764b6126c86.tar.gz iced-d50ff9b5d97d9c3d6c6c70a9b4efe764b6126c86.tar.bz2 iced-d50ff9b5d97d9c3d6c6c70a9b4efe764b6126c86.zip |
Implement `Runtime` and `Executor` in `iced_core`
They can be leveraged by shells to easily execute commands
and track subscriptions.
Diffstat (limited to 'core/src/subscription')
-rw-r--r-- | core/src/subscription/tracker.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/subscription/tracker.rs b/core/src/subscription/tracker.rs index 826f60c0..a942b619 100644 --- a/core/src/subscription/tracker.rs +++ b/core/src/subscription/tracker.rs @@ -28,14 +28,14 @@ where } } - pub fn update<Message, S>( + pub fn update<Message, Receiver>( &mut self, subscription: Subscription<Hasher, Event, Message>, - sink: S, + receiver: Receiver, ) -> Vec<BoxFuture<'static, ()>> where Message: 'static + Send, - S: 'static + Receiver: 'static + Sink<Message, Error = core::convert::Infallible> + Unpin + Send @@ -72,7 +72,7 @@ where let future = futures::future::select( cancelled, - stream.map(Ok).forward(sink.clone()), + stream.map(Ok).forward(receiver.clone()), ) .map(|_| ()); |