UNPKG

mediasfu-reactjs

Version:

mediasfu-reactjs – React 18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Plug-in prebuilt rooms or build fully custom UIs.

19 lines 630 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 - An object containing the sleep duration. * @param {number} options.ms - The number of milliseconds to sleep. * @returns {Promise<void>} A promise that resolves after the specified duration. * * @example * ```typescript * await sleep({ ms: 2000 }); * console.log("Waited for 2 seconds"); * ``` */ export declare function sleep({ ms }: SleepOptions): Promise<void>; //# sourceMappingURL=sleep.d.ts.map