Sentix v1.0.0 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
Specs
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.
Specs
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.