Sentix v1.0.3 Sentix.Watcher

Summary

Functions

Main initialization for a watcher, opening a bridge to the fswatch port

Starts a Sentix watcher using the provided name, paths and options

Functions

init(args)
init({name :: atom, paths :: [binary], options :: Keyword.t}) :: {:ok, {name :: atom, process :: number, subscribers :: [pid]}}

Main initialization for a watcher, opening a bridge to the fswatch port.

start_link(name, paths, options)
start_link(name :: atom, paths :: [binary], options :: Keyword.t) ::
  {:ok, pid} |
  {:error, reason :: atom | binary}

Starts a Sentix watcher using the provided name, paths and options.

If the fswatch binary cannot be located, an error will be returned.