On Thu, Dec 12, 2013 at 06:08:11PM -0800, Joachim De Beule wrote: > I expected to see a sequence of the form "<><><>...". However, only one or > very few ">" get printed, so I get a sequence "<>>>...". Why?
They're getting buffered. Try this: (as/pipe (as/map< (fn [x] (print "<") (flush) x) source) (as/map> (fn [x] (print ">") (flush) x) sink)) Those calls to flush will make sure it prints those characters immediately. Then you'll see the output you're expecting. I can't help you with whether this is the right way to do things, unfortunately, as I've only had very limited experience with core.async. -- -- 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/groups/opt_out.