property WatchSession.latest

The most recent run's result — initial until something re-runs.

The session's current state, readable without consuming the iteration. A UI redrawing for some reason of its own (a resize, a keystroke) needs the last result again, and taking it from the iterator would steal it from the loop that is driving the redraws.

Type

Usage

import { type WatchSession } from "lib/api/watch.ts";