summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-07 23:39:55 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-07 23:39:55 +0100
commit2074757cdc65ec16eeb1c7a12a5ff3bb5ed00859 (patch)
tree43ea058c8b7d0b4a13f9fe3ad7015efeea94ed48 /winit/src/application.rs
parent1bb5a1b9a23e1c4739430ac87ca33b06c2f4d9df (diff)
parentecf42b97df85df25b1b825f37adfeb00f658f6ee (diff)
downloadiced-2074757cdc65ec16eeb1c7a12a5ff3bb5ed00859.tar.gz
iced-2074757cdc65ec16eeb1c7a12a5ff3bb5ed00859.tar.bz2
iced-2074757cdc65ec16eeb1c7a12a5ff3bb5ed00859.zip
Merge pull request #2313 from iced-rs/fix/wasm-block-on
Fix `block_on` in `iced_wgpu` hanging Wasm builds
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r--winit/src/application.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 05a4f070..29ee1a71 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -97,7 +97,7 @@ where
/// Runs an [`Application`] with an executor, compositor, and the provided
/// settings.
-pub fn run<A, E, C>(
+pub async fn run<A, E, C>(
settings: Settings<A::Flags>,
compositor_settings: C::Settings,
) -> Result<(), Error>
@@ -188,7 +188,7 @@ where
};
}
- let compositor = C::new(compositor_settings, window.clone())?;
+ let compositor = C::new(compositor_settings, window.clone()).await?;
let mut renderer = compositor.create_renderer();
for font in settings.fonts {