We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79d2b4a commit d07f18cCopy full SHA for d07f18c
src/xiana/hotreload.clj
@@ -5,7 +5,17 @@
5
6
;; reloader function from ring.middleware.reload
7
8
-(defn- reloader [dirs retry?]
+(defn- reloader
9
+"Reload namespaces of modified files before the request is passed to the
10
+supplied handler.
11
+
12
+Accepts the following options:
13
14
+:dirs - A list of directories that contain the source files.
15
+ Defaults to ["src"].
16
+:retry? - If true, keep attempting to reload namespaces
17
+ that have compile errors. Defaults to true."
18
+ [dirs retry?]
19
(let [modified-namespaces (ns-tracker dirs)
20
load-queue (java.util.concurrent.LinkedBlockingDeque.)]
21
(fn []
0 commit comments