Skip to main content

Module config_watcher

Module config_watcher 

Source
Expand description

notify-driven file watcher for obs.yaml reload. Spec 15 § 5.3 / spec 93 P0-9.

ConfigWatcher::spawn launches a background OS-level watcher that debounces file change events and invokes a user-supplied callback with the freshly-reloaded EventsConfig. The callback is the integration point — typically it calls Observer::reload_config plus emits an ObsConfigReloaded / ObsConfigReloadFailed self-event so operators can confirm the reload landed.

The watcher debounces with a 200 ms window so a save that triggers Modify(Data) + Modify(Metadata) only fires the callback once. Drop the ConfigWatcher handle to stop watching.

Structs§

ConfigWatcher
Active file watcher. Drop to stop.

Constants§

DEFAULT_DEBOUNCE
Default debounce window between consecutive change events.