Delays execution for a specified number of milliseconds.
This helper is used throughout MediaSFU to wait for short transport or media lifecycle transitions before continuing work.
Delay configuration.
A promise that resolves after the requested delay.
await sleep({ ms: 500 });// Continue after a half-second pause. Copy
await sleep({ ms: 500 });// Continue after a half-second pause.
Delays execution for a specified number of milliseconds.
This helper is used throughout MediaSFU to wait for short transport or media lifecycle transitions before continuing work.