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)
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>
@jeroenvandijk correct, boot namespaces are designed for use within boot, not other environments...... yet!
Cool! Thanks