olive/watcher

The watcher module watches a list of dir and triggers a FilesChanged message to be handled by calling code.

Types

pub type Change {
  SourceChange(file_name: String)
  PrivChange(file_name: String)
}

Constructors

  • SourceChange(file_name: String)
  • PrivChange(file_name: String)
pub opaque type InternalMsg
pub type Message {
  FilesChanged(List(Change))
}

Constructors

Values

pub fn start(
  config: config.Config,
  watch_subject: process.Subject(Message),
) -> Result(actor.Started(Nil), actor.StartError)
Search Document