ui/client/features/git-session/services/GitSessionPolling
How often the Cockpit re-reads the session.
Cockpit client (features), v0.9. Source: ui/client/features/git-session/services/GitSessionPolling.ts.
Variables#
GIT_SESSION_POLL_MS#
constGIT_SESSION_POLL_MS:1500=1500
Defined in: ui/client/features/git-session/services/GitSessionPolling.ts:3
How often the Cockpit re-reads the session. The coalescing window closes on the SERVER's timer, so without a poll the indicator would go stale at exactly the moment a commit happens.
Functions#
watchGitSession()#
watchGitSession(
refresh,intervalMs?): () =>void
Defined in: ui/client/features/git-session/services/GitSessionPolling.ts:7
Timers are external effects (SERVICE-001): the session polling loop lives here, not in its hook.
Refresh once now, then every intervalMs; the returned function stops it.
Parameters#
refresh
() => unknown
intervalMs?
number = GIT_SESSION_POLL_MS
Returns#
() => void