ui/client/features/tests/services/RunPolling
How often a live test run is re-read.
Cockpit client (features), next. Source: ui/client/features/tests/services/RunPolling.ts.
Variables#
RUN_POLL_MS#
constRUN_POLL_MS:1000=1000
Defined in: ui/client/features/tests/services/RunPolling.ts:2
How often a live test run is re-read.
Functions#
watchLiveRun()#
watchLiveRun(
refresh,intervalMs?): () =>void
Defined in: ui/client/features/tests/services/RunPolling.ts:6
Timers are external effects (SERVICE-001): the live-run loop lives here, not in its hook.
Refresh every intervalMs (the caller has just read the run, so no read now); the returned function stops it.
Parameters#
refresh
() => unknown
intervalMs?
number = RUN_POLL_MS
Returns#
() => void