一个实现java.io.Closeable Clojure映射。 安装 TL; DR示例 ; ; in your project ( defn start " Return an running context with stateful references which can be closed. " [config] ( assoc config :server ( http/start-server ( api context) { :port 3030 }) :producer ( kafka-producer config) :consumer ( kafka-consumer config))) ; ; in test file ( with-open [context ( piotr-yuxuan/closeable-map ( star