Pebble App Framework: Phone API
    Preparing search index...

    Function weatherRetryDelayMs

    • Decides how long to wait before retrying a weather fetch, or null when no retry should run. A successful fetch never retries, nor does one that failed on the wearer's settings, such as a bad key, and the attempts are capped.

      Parameters

      • resultOk: boolean

        Whether the fetch that just finished succeeded.

      • attempt: number

        How many retries have already run.

      • condition: string = ''

        The failed fetch's status word, such as NET ERROR or INVALID KEY.

      Returns number | null

      The delay in milliseconds before the next retry, or null when no retry should run.