From 49d83f632a31f519867e74b5676184ebd95d7993 Mon Sep 17 00:00:00 2001 From: Daniel Salinas Date: Fri, 6 Sep 2024 12:02:55 -0400 Subject: [PATCH] Move promise time to 1ms --- typescript/src/async-rust-call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/src/async-rust-call.ts b/typescript/src/async-rust-call.ts index 52f509ba..91ac6c5f 100644 --- a/typescript/src/async-rust-call.ts +++ b/typescript/src/async-rust-call.ts @@ -93,7 +93,7 @@ export async function uniffiRustCallAsync( if (pollResult == UNIFFI_RUST_FUTURE_POLL_READY) { break; } - await delayPromise(100); + await delayPromise(1); } // Now it's ready, all we need to do is pick up the result (and error).