@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function wait

    • Returns a promise that resolves after a specified number of milliseconds. This is useful for delaying actions in asynchronous code.

      Parameters

      • ms: number

        The number of milliseconds to wait before resolving.

      Returns Promise<void>

      A promise that resolves after the given ms.

      await wait(2000); // Waits for 2 seconds before continuing
      console.log("This will print after 2 seconds");