retryWithTimeoutNotice
Retries the provided function until it returns true or the timeout is reached and displays a notice if the function times out.
Import:
import { retryWithTimeoutNotice } from 'obsidian-dev-utils/obsidian/async-with-notice';Signature:
function retryWithTimeoutNotice(params: RetryWithTimeoutNoticeParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | RetryWithTimeoutNoticeParams | The 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: