Welcome! Please see the About page for a little more info on how this works.

0 votes
ago in Clojure by

Given this repro:

(ns repro)

(defn exec-fn [_]
  (let [a (agent nil)]
    (prn (-> (java.lang.ProcessHandle/current) (.pid)))
    (send a (fn [_] 3))))

the clojure -X repro/exec-fn invocation is hanging.

This seems to be unintentional, given that clojure -X doesn't wait for futures to finish either?

Please log in or register to answer this question.

...