diff options
author | 2024-06-04 23:20:33 +0200 | |
---|---|---|
committer | 2024-06-10 22:03:46 +0200 | |
commit | e400f972c1fe6fa4f70f8cfe559ded680e6cf740 (patch) | |
tree | 3f026bfdf489c367ff007b6513752c8060014a4d /futures/src/runtime.rs | |
parent | 49affc44ff57ad879a73d9b4d329863d6f4b1d2c (diff) | |
download | iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.gz iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.tar.bz2 iced-e400f972c1fe6fa4f70f8cfe559ded680e6cf740.zip |
Introduce `window::Id` to `Event` subscriptions
And remove `window::Id` from `Event` altogether.
Diffstat (limited to 'futures/src/runtime.rs')
-rw-r--r-- | futures/src/runtime.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/futures/src/runtime.rs b/futures/src/runtime.rs index cac7b7e1..ae55f814 100644 --- a/futures/src/runtime.rs +++ b/futures/src/runtime.rs @@ -1,5 +1,6 @@ //! Run commands and keep track of subscriptions. use crate::core::event::{self, Event}; +use crate::core::window; use crate::subscription; use crate::{BoxFuture, BoxStream, Executor, MaybeSend}; @@ -127,7 +128,12 @@ where /// See [`Tracker::broadcast`] to learn more. /// /// [`Tracker::broadcast`]: subscription::Tracker::broadcast - pub fn broadcast(&mut self, event: Event, status: event::Status) { - self.subscriptions.broadcast(event, status); + pub fn broadcast( + &mut self, + event: Event, + status: event::Status, + window: window::Id, + ) { + self.subscriptions.broadcast(event, status, window); } } |