new-> restart listener
This commit is contained in:
parent
9b063504e8
commit
d9ea3a56f0
1 changed files with 5 additions and 0 deletions
|
|
@ -319,6 +319,11 @@
|
||||||
(apply stop states)
|
(apply stop states)
|
||||||
(apply start states))))
|
(apply start states))))
|
||||||
|
|
||||||
|
(defn restart-listner
|
||||||
|
([]
|
||||||
|
(restart-listner {}))
|
||||||
|
([watchers]
|
||||||
|
(RestartListener. (atom watchers))))
|
||||||
|
|
||||||
;; explicit, not composable (subject to depreciate?)
|
;; explicit, not composable (subject to depreciate?)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue