setTimeoutAsync
Delays execution for a specified number of milliseconds.
Import:
import { setTimeoutAsync } from 'obsidian-dev-utils/async';Signature:
function setTimeoutAsync(delay: number | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
delay | number | undefined | The time to wait in milliseconds. |
Returns: Promise<void> — A Promise that resolves after the specified delay.