@sensimods/utility-lab
    Preparing search index...

    Function sleep

    • Pauses the execution of an async function for a specified number of milliseconds.

      Parameters

      • ms: number

        Milliseconds to sleep.

      Returns Promise<void>

      A promise that resolves after the delay.

      await sleep(2000); // Wait for 2 seconds