@tempots/std
Version:
Std library for TypeScript. Natural complement to the Tempo libraries.
12 lines (11 loc) • 364 B
TypeScript
/**
* Sleep for a given number of milliseconds.
*
* @param ms - The number of milliseconds to sleep.
* @param options - The options for the sleep function.
* @returns A promise that resolves after the given number of milliseconds.
* @public
*/
export declare const sleep: (ms: number, { abortSignal }?: {
abortSignal?: AbortSignal;
}) => Promise<void>;