Class PollLoops

Assembly: redb.Tsak.Web.dll

Shared body of the pages' auto-refresh loops (review 2026-09-02, С18): one transient
exception (a node timeout, a DB blip, a JS-interop disconnect) must not silently kill the
fire-and-forget loop — the page would keep showing stale data under a live "Auto-refresh"
label for the rest of the circuit. A failed tick is logged and dropped, and the next tick
retries; only the loop's OWN cancellation ends it.

Threading contract: tick runs on the thread pool, NOT on the Blazor dispatcher. A tick
that touches component state or calls StateHasChanged (its own or a child's) must wrap its
body in the component's InvokeAsync.

public static class PollLoops

Inheritance

Object→PollLoops

Methods

RunAsync(PeriodicTimer, CancellationToken, ILogger, Func<Task>)

public static Task RunAsync(PeriodicTimer timer, CancellationToken ct, ILogger log, Func<Task> tick)