Skip to content

SleepParams

Parameters for sleep.

Import:

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

Signature:

export interface SleepParams

Properties

PropertyTypeDescription
abortSignal?AbortSignalThe abort signal to listen to.
millisecondsnumberThe time to wait in milliseconds.
shouldThrowOnAbort?booleanWhether to throw an error if the abort signal is aborted.

Links to this page: