I tried this code from this guide:
(defn my-fn [ms]
(println "entered my-fn")
(Thread/sleep ms)
(println "leaving my-fn"))
(let [thread (Thread.
(.start thread)
(println "started thread")
(while (.isAlive thread)
(print ".")
(flush))
(println "thread stopped"))
When I execute it, part of the result appears in the REPL, and the other part is displayed in the console (which appears because I usually hide it because I do not use it).
I want to send all the output to the REPL window, how can I do this?
source
share