olive/watcher

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

Types

pub opaque type InternalMsg
pub type Message {
  FilesChanged(String)
}

Constructors

  • FilesChanged(String)

Functions

pub fn start(
  config: Config,
  watch_subject: Subject(Message),
) -> Result(Subject(InternalMsg), StartError)
Search Document