Open loganlinn opened 2 years ago
the README suggests AutoCloseable is respected, but currently is not.
AutoCloseable
reproduction:
dev=> (require '[juxt.clip.core :as clip]) nil dev=> (def config #_=> {:components #_=> {:a {:start #(reify java.lang.AutoCloseable #_=> (close [_] #_=> (println "close <java.lang.AutoCloseable>")))} #_=> :b {:start #(reify java.io.Closeable #_=> (close [_] #_=> (println "close <java.io.Closeable>")))}}}) #_=> dev=> (clip/stop config (clip/start config)) close <java.io.Closeable> {:a nil, :b nil}
makes the following improvements:
java.io.Closeable
java.lang.AutoCloseable
(isa? (class x) C)
(instance? C x)
the README suggests
AutoCloseable
is respected, but currently is not.reproduction:
makes the following improvements:
java.io.Closeable
to superinterface,java.lang.AutoCloseable
.(isa? (class x) C)
to more idiomatic(instance? C x)
.