Last active
November 4, 2021 20:35
-
-
Save valichek/6bff5ff0ff626aaea666 to your computer and use it in GitHub Desktop.
Thread safe println #clojure #debug
This file contains 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
;http://yellerapp.com/posts/2014-12-11-14-race-condition-in-clojure-println.html | |
(defn safe-println [& more] | |
(.write *out* (str (clojure.string/join " " more) "\n"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment