set of keys for restart listener "on-change"
This commit is contained in:
parent
7d323e727e
commit
c189db9d12
1 changed files with 5 additions and 4 deletions
|
|
@ -314,10 +314,11 @@
|
|||
(doseq [k ks]
|
||||
(swap! watchers update k #(conj % state))))
|
||||
|
||||
(on-change [_ k]
|
||||
(let [states (@watchers k)]
|
||||
(apply stop states)
|
||||
(apply start states))))
|
||||
(on-change [_ ks]
|
||||
(doseq [k ks]
|
||||
(let [states (@watchers k)]
|
||||
(apply stop states)
|
||||
(apply start states)))))
|
||||
|
||||
(defn restart-listner
|
||||
([]
|
||||
|
|
|
|||
Loading…
Reference in a new issue