Function waitForBackground

  • Waits for the background to start within a given timeout period.

    Parameters

    • timeout: number = 10

      The maximum time to wait for the background to start, in seconds.

    Returns Promise<boolean>

    A promise that resolves to true if the background has started within the timeout period, and false otherwise.