Liking cljdoc? Tell your friends :D

ojo.impl


active?clj

source

await-eventsclj

(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.
sourceraw docstring

constrain-to-patternsclj

(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
sourceraw docstring

create-watchclj

(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.
sourceraw docstring

events->infoclj

(events->info events path)
source

existing-files-as-eventsclj

(existing-files-as-events path-obj)
source

key->kindclj

source

kind->keyclj

source

registerclj

(register path watcher kinds-to-watch)

register event kinds and produce a watch key

register event kinds and produce a watch key
sourceraw docstring

watchclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close