Skip to content

Instantly share code, notes, and snippets.

@valichek
Last active November 4, 2021 20:35
Show Gist options
  • Save valichek/6bff5ff0ff626aaea666 to your computer and use it in GitHub Desktop.
Save valichek/6bff5ff0ff626aaea666 to your computer and use it in GitHub Desktop.
Thread safe println #clojure #debug
;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