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
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue