Skip to main content

Module worker

Module worker 

Source
Expand description

The background worker: every disk touch — loads, refactors, fixes, and structured frontmatter edits — happens here, never on the UI thread.

The worker keeps the latest Snapshot it built and runs refactor previews and applies against that bundle. After every write it rebuilds, so the UI converges on the on-disk truth without the watcher’s help.

Structs§

WorkerConfig
The worker’s fixed configuration.

Functions§

spawn
Spawns the worker thread and returns its command channel.