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

@ -662,15 +662,7 @@ async fn run_instance<P, C>(
}
};
#[cfg(not(target_arch = "wasm32"))]
crate::futures::futures::executor::block_on(
create_compositor,
);
#[cfg(target_arch = "wasm32")]
{
wasm_bindgen_futures::spawn_local(create_compositor);
}
P::Executor::block_on(create_compositor);
continue;
}