Created
July 25, 2016 23:55
-
-
Save timsgardner/abbdb7a6fb956abe5951cfad54c48b2b to your computer and use it in GitHub Desktop.
println doesn't work from other threads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; seems to me this should work from the repl; it doesn't. | |
(let [out *out*] | |
(Thread. | |
(gen-delegate ThreadStart [] | |
(binding [*out* out] | |
(println "hi"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment