fix wasm
This commit is contained in:
@@ -2,6 +2,7 @@ use super::*;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(target_arch = "wasm32")] {
|
||||
use futures_util::future::{select, Either};
|
||||
|
||||
pub async fn timeout<F, T>(dur_ms: u32, f: F) -> Result<T, TimeoutError>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user