Liking cljdoc? Tell your friends :D

axle.core


stop!clj

(stop! {w :watcher})

watch!clj

(watch! config)

Replaces Hawk watch! task, which depends on deprecated Barbary WatchService. Barbary WatchService is no longer supported and very laggy on M1 macs.

:paths - A seq of string paths to watch :context - Initial context map to start the watch reduce process :handler - Handler that reduces over file watch events to accumulate a context. This is a function of two args, the first is the context that is being accumulated, and the second is the current watch event being processed. :file-hashing - Boolean whether file hashing is enabled. Default, false.

Watch events are maps with the following attributes:

:type - Either :create, :delete, :modify, or :overflow :path - The path of the file :count - Number of times the event applied :root-path - Root path of the file :directory? - Boolean, true if it is a directory, false otherwise :hash - [Optional] File hash

Replaces Hawk watch! task, which depends on deprecated Barbary
WatchService. Barbary WatchService is no longer supported and very
laggy on M1 macs.

:paths        - A seq of string paths to watch
:context      - Initial context map to start the watch reduce
                process
:handler      - Handler that reduces over file watch events to
                accumulate a context. This is a function of two
                args, the first is the context that is being
                accumulated, and the second is the current watch
                event being processed.
:file-hashing - Boolean whether file hashing is enabled.
                Default, false.

Watch events are maps with the following attributes:

:type         - Either :create, :delete, :modify, or :overflow
:path         - The path of the file
:count        - Number of times the event applied
:root-path    - Root path of the file
:directory?   - Boolean, true if it is a directory, false
                otherwise
:hash         - [Optional] File hash
raw docstring

watcherclj

(watcher {:keys [paths handler file-hashing] :as config})

windowclj

(window ms handler)

Window events for efficiency.

Window events for efficiency.
raw docstring

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

× close