Liking cljdoc? Tell your friends :D

watch.man

Small facade for Java's WatchService to be notified of FS changes

Small facade for Java's WatchService to be notified of FS changes
raw docstring

->evtsclj

(->evts coll)

Prepare a list of event types for Path/register

Prepare a list of event types for Path/register
sourceraw docstring

->keyclj

(->key fs srv types location)

Create a watch key

Create a watch key
sourceraw docstring

->pathclj

(->path base elems)
(->path base elems & more)

Construct a path from

Construct a path from 
sourceraw docstring

closeclj

(close service)

Close a watch service

Close a watch service
sourceraw docstring

evt->kwclj

Map WatchEventKinds to keywords

Map WatchEventKinds to keywords
sourceraw docstring

group-eventsclj

(group-events polled)

When receiving multiple events on a key, group them by path

When receiving multiple events on a key, group them by path
sourceraw docstring

kw->evtclj

Map keywords to WatchEventKinds

Map keywords to WatchEventKinds
sourceraw docstring

watch!clj

(watch! locations notify!)
(watch! locations
        notify!
        {:keys [event-types] :or {event-types [:create :modify :delete]}})

Watch a location or seq of locations and call notify! with two args (path and types) when events occur. Accepts an optional map of options: exception! is a callback and event-types a list of keywords

Watch a location or seq of locations and call notify! with two
args (path and types) when events occur. Accepts an optional map
of options: exception! is a callback and event-types a list of keywords
sourceraw docstring

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

× close