From 7d323e727e7228617ae33ba574a4199c6bf9178b Mon Sep 17 00:00:00 2001 From: anatoly Date: Wed, 2 Nov 2016 11:25:44 -0400 Subject: [PATCH] new-> restart listener --- src/mount/core.cljc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mount/core.cljc b/src/mount/core.cljc index cbe0afe..1917961 100644 --- a/src/mount/core.cljc +++ b/src/mount/core.cljc @@ -319,6 +319,11 @@ (apply stop states) (apply start states)))) +(defn restart-listner + ([] + (restart-listner {})) + ([watchers] + (RestartListener. (atom watchers)))) ;; explicit, not composable (subject to depreciate?)