Skip to main content

Module watch

Module watch 

Source
Expand description

Local mode’s one ordered response to saved files. The binary’s watcher turns the platform’s file events into bursts of changed paths and hands each burst here; everything that follows from it is decided here, in one order: the folder follows the paths, the design store and the widget modules forget what they read of them, the slide PNGs kept forget each slide whose deck a path is part of, open pages hear what changed — a page’s comments for each thread another hand changed, then at most one refresh — and last the search index reads them again, so indexing text never holds up a refresh. Server mode has none of this: a published version never changes.

Structs§

Listeners
Who hears about the files that change in the served folder, and the bus open pages hear it on.

Traits§

SlidePngs
The slide PNGs a server keeps — the binary’s, drawn by Chrome — told of the files that changed so each forgets the slides whose deck a change reaches (crate::check::drawn_from) and no other.