(await-events watcher path)
produces a seq of maps following the ocurrence of a qualifying event each map contains information on a matching file event that occured.
produces a seq of maps following the ocurrence of a qualifying event each map contains information on a matching file event that occured.
(constrain-to-patterns dir patterns info)
strip out events pertaining to files that don't match specified patterns
strip out events pertaining to files that don't match specified patterns
(create-watch dir-and-patterns
event-kinds
&
{:keys [respond parallel worker-poll-ms worker-count extensions
settings file-states-atom]
:as options})
create a hash with start/cease callbacks closing over a watch service object and an atom to keep track of file states. if parallel, the start function creates workers to respond, otherwise initiate to use responder directly.
create a hash with start/cease callbacks closing over a watch service object and an atom to keep track of file states. if parallel, the start function creates workers to respond, otherwise initiate to use responder directly.
(register path watcher kinds-to-watch)
register event kinds and produce a watch key
register event kinds and produce a watch key
(watch watcher
[dir & patterns]
event-kinds
{:keys [respond eval-composite-hook settings initialized parallel]
:as options})
wait for an event, perform its associated response, lather/rinse/recur
wait for an event, perform its associated response, lather/rinse/recur
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close