summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-29 00:12:48 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-29 00:12:48 +0100
commit3b7d479534d9114ed12bb5d9ccd910e85d5c13c7 (patch)
treeab5c3e2a8f074d9a02dd470bfd659fb1740bf82a /winit/src/application.rs
parent133f4da9014fcdc331ac44269209ee61ca56d007 (diff)
downloadiced-3b7d479534d9114ed12bb5d9ccd910e85d5c13c7.tar.gz
iced-3b7d479534d9114ed12bb5d9ccd910e85d5c13c7.tar.bz2
iced-3b7d479534d9114ed12bb5d9ccd910e85d5c13c7.zip
Implement `Command::run` for executing a `Stream` to completion
Diffstat (limited to '')
-rw-r--r--winit/src/application.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 315e34d9..2c5c864a 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -736,6 +736,9 @@ pub fn run_command<A, C, E>(
command::Action::Future(future) => {
runtime.spawn(future);
}
+ command::Action::Stream(stream) => {
+ runtime.run(stream);
+ }
command::Action::Clipboard(action) => match action {
clipboard::Action::Read(tag) => {
let message = tag(clipboard.read());