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

    Function runStockRound

    • Runs one stock-fetch round: fires a quote per symbol, collects them in display order, and sends the packed strip once the last lands.

      Built so an unfinished fetch can never get stuck and block every fetch after it. A symbol that throws right away counts as a failed quote, a watchdog force-closes a round whose callback never arrives, and a forced round takes over from one that is still running so the old round's late replies can't reopen it or send twice.

      Parameters

      • state: StockState

        The fetch state to read and update in place.

      • symbols: string[]

        The symbols to fetch, in display order.

      • force: boolean

        Whether to start a new round even when one is already in flight.

      • deps: StockDeps

        The fetch, send, clock, and timeout helpers to use.

      Returns void