Skip to content

retryWithTimeout

Retries the provided function until it returns true or the timeout is reached.

Import:

import { retryWithTimeout } from 'obsidian-dev-utils/async';

Signature:

function retryWithTimeout(params: RetryWithTimeoutParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsRetryWithTimeoutParamsThe parameters for the function.

Returns: Promise<void> — A Promise that resolves when the function returns true or rejects when the timeout is reached.


Links to this page: