Skip to main content

run

Function run 

Source
pub async fn run(
    render_state: Arc<ArcSwap<RenderState>>,
    wake: VirtualRowsWake,
    providers: Arc<VirtualRowProviderRegistry>,
    paint_request: Arc<Notify>,
)
Expand description

Worker entry point spawned at boot. Loops forever, awaiting the wake Notify. Each wake re-reads the latest RenderState + provider registry and calls recompute.

paint_request is the shared Notify consumed by the renderer peer — fired on Recomputed / Clear decisions (content changed). CacheHit returns without waking the renderer.

Coalescing mirrors cells_worker: Notify::notify_one stores at most one permit, so a burst of wakes during a rebuild collapses to one tail rebuild. No explicit debounce.