Thanks, that indeed did the trick.

More generally it's not clear to me what makes a channel an "output 
channel" or an "input channel". Aren't all channels input and output 
channels depending on whether you read from or write to it?

 

Op vrijdag 13 december 2013 04:28:53 UTC+1 schreef Carlo:
>
> 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.

Reply via email to