Skip to main content

run

Function run 

Source
pub async fn run(
    render_state: Arc<ArcSwap<RenderState>>,
    wake: OverlayWake,
    static_overlay_quads_cell: Arc<ArcSwap<StaticOverlayQuads>>,
    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.syntax inputs and calls recompute.

Spawn from editor_boot once Editor is constructed. Pass clones of Editor::render_state and Editor::syntax_static_overlay_quads_cell plus the wake Notify.