boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
2019-04-10T07:12:17.037300Z

Ok this seems to work

(def pool-fn (boot.pod/pod-pool {} :size 5 :destroy (fn [_] (println "destroying pod")) :init (fn [_] (println "new pod"))))

;; Take a pod out of the pool. Will be destroyed when there are no references to the pod. A new pod is started
(pool-fn :take)

2019-04-10T07:13:54.038200Z

I tried to use https://clojars.org/boot/pod outside of the boot environment. But i guess this is not supported? I get this when I try it:

Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:381).
<http://boot.App|boot.App>

flyboarder 2019-04-10T11:37:00.039200Z

@jeroenvandijk correct, boot namespaces are designed for use within boot, not other environments...... yet!

2019-04-10T11:39:03.039400Z

Cool! Thanks