Skip to content

sleep

Delays execution for a specified number of milliseconds.

Import:

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

Signature:

function sleep(params: SleepParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsSleepParamsThe parameters for the function.

Returns: Promise<void> — A Promise that resolves after the specified delay.


Links to this page: