This commit is contained in:
imWildCat 2023-09-20 21:01:19 -07:00
parent 42375c1218
commit 63eed40b97
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ pub fn add(a: i32, b: i32) -> i32 {
#[uniffi::export] #[uniffi::export]
pub async fn say_after(ms: u64, who: String) -> String { pub async fn say_after(ms: u64, who: String) -> String {
let never = std::future::pending::<()>(); let never = pending::<()>();
timeout(std::time::Duration::from_millis(ms), never) timeout(std::time::Duration::from_millis(ms), never)
.await .await
.unwrap_err(); .unwrap_err();