geoview-core
    Preparing search index...

    Function doUntil

    • Repeatedly invokes a callback function at a given interval until it returns true. Once the callback returns true, the interval is cleared and the polling stops.

      Type Parameters

      • T

      Parameters

      • callback: () => T

        A function that is called every ms milliseconds. If it returns true, the interval is cleared.

      • ms: number

        The interval time in milliseconds between callback executions.

      Returns Timeout

      The interval timer ID, which can be used to clear the interval manually if needed.