There are several things going on here, and I'd need to see the rest of the code to provide more accurate feedback. In general though, I'd try to stay away from <!! in any tight inner loop that you expect to run at a regular interval. Instead I'd put data into an atom and use (deref) inside the tight loop. Or user async/poll if I really needed to interact with a channel.
On Tue, Aug 2, 2016 at 2:47 PM, John Mastro <john.b.mas...@gmail.com> wrote: > JvJ <kfjwhee...@gmail.com> wrote: > > (try (do > > (q/text "Putting beacon..."0 40) > > (put! beacon true) > > (let [ns (<!! beacon-notify)] > > (q/fill 255) > > (q/text (str "State: " ns) 0 60))) > > (catch Exception e > > (q/fill 255 0 0) > > (q/text (str "Error: " e 0 60)))) > > > > state) > > I don't know if this is related, but I noticed that where you have: > > (q/text (str "Error: " e 0 60)) > > You probably mean this (based on the other calls to q/text): > > (q/text (str "Error: " e) 0 60) > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.