@jiminp/tooltool
    Preparing search index...

    Function sleep

    • Pauses execution for the specified duration.

      This function returns a Promise that resolves after the given number of milliseconds. It is commonly used to introduce delays in asynchronous workflows.

      Parameters

      • time_ms: number

        The number of milliseconds to sleep.

      Returns Promise<void>

      A promise that resolves once the delay has elapsed.

      await sleep(500); // waits for 500 ms