UNPKG

mediasfu-angular

Version:

mediasfu-angular - Angular 17/18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Prebuilt rooms and fully custom UIs.

19 lines (18 loc) 564 B
export interface SleepOptions { ms: number; } export type SleepType = (options: SleepOptions) => Promise<void>; /** * Pauses the execution for a specified number of milliseconds. * * @param {SleepOptions} options - Contains the duration to pause. * @param {number} options.ms - Number of milliseconds to delay. * @returns {Promise<void>} Resolves after the specified duration. * * @example * ```typescript * await sleep({ ms: 2000 }); * // Pauses execution for 2 seconds * ``` */ export declare function sleep({ ms }: SleepOptions): Promise<void>;