don't use futures-executor when it's not the default executor
This commit is contained in:
parent
a3a7503eef
commit
baadcc150f
12 changed files with 41 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue