Permalink
Browse files

Move printing to happen on the same thread as the render

  • Loading branch information...
1 parent 80781e9 commit f42bf2325978a18aadc09c6236adbd2e1c68b684 @dgrnbrg committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/spyscope/core.clj
View
4 src/spyscope/core.clj
@@ -73,10 +73,10 @@
value# (pretty-render-value f#
~(assoc (meta form)
::form (list 'quote form)))]
+ (when ~(::print? (meta form))
+ (print (str (:message value#) "\n")))
(send-off trace-storage
(fn [{g# :generation t# :trace :as storage#}]
- (when ~(::print? (meta form))
- (println (:message value#)))
(assoc storage#
:trace
(conj t# (assoc value#

0 comments on commit f42bf23

Please sign in to comment.