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
|
|
@ -14,6 +14,12 @@ impl crate::Executor for Executor {
|
|||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
fn spawn(&self, _future: impl Future<Output = ()> + 'static) {}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
fn block_on(_future: impl Future<Output = ()> + 'static) {}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
fn block_on(_future: impl Future<Output = ()> + 'static) {}
|
||||
}
|
||||
|
||||
pub mod time {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue