don't use futures-executor when it's not the default executor

This commit is contained in:
edwloef 2025-03-13 23:12:44 +01:00 committed by Héctor Ramón Jiménez
parent a3a7503eef
commit baadcc150f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
12 changed files with 41 additions and 12 deletions

View file

@ -12,6 +12,10 @@ impl crate::Executor for Executor {
fn spawn(&self, future: impl futures::Future<Output = ()> + 'static) {
wasm_bindgen_futures::spawn_local(future);
}
fn block_on(future: impl futures::Future<Output = ()> + 'static) {
wasm_bindgen_futures::spawn_local(future);
}
}
pub mod time {