This commit is contained in:
John Smith
2023-07-02 16:23:04 -05:00
parent e457c0bcc6
commit b5906a52bc
8 changed files with 59 additions and 53 deletions

View File

@@ -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