We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bef9baf commit d2b620fCopy full SHA for d2b620f
src/util/index.ts
@@ -251,7 +251,7 @@ export async function nextTick(): Promise<void> {
251
*
252
* If the function does not return a value within a reasonable amount of time,
253
* throws {@link TimedOutError}. */
254
-export async function shortPoll<T>(fn: () => T, ms: number = 10): Promise<T> {
+export async function shortPoll<T>(fn: () => T, ms: number = 100): Promise<T> {
255
// Relies on the implicit behavior of setTimeout() being automatically
256
// delayed--see "Nested timeouts" from:
257
// https://developer.mozilla.org/en-US/docs/Web/API/setTimeout
0 commit comments