Re: CCW bug [SEVERE]

2014-10-27 Thread Yohan Pereira
On Mon, Oct 27, 2014 at 8:51 PM, Fluid Dynamics a2093...@trbvm.com wrote:
 Objection: relevance? The OP specifically suggested github,

git != github

http://en.wikipedia.org/wiki/Git_(software)
http://en.wikipedia.org/wiki/GitHub

-- 
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.


Re: core.async take behaviour

2014-09-03 Thread Yohan Pereira
On Wed, Sep 3, 2014 at 11:31 AM, cig clifford.goldb...@gmail.com wrote:
 Thanks Timothy, that makes sense.

 A follow on question if you don't mind.

 I would like to 'take' n items off of a channel, but wait until n items are
 available rather than eagerly returning the way take does. Do you have any
 ideas on how
 I could achieve this?


Hi,

I think by design core.async does not provide any information about the channel,
so there is no way to know how many items are available.

However I implemented something similar using the following. Where n
is the number of
items you want.

(repeatedly n #(!! feed-chan))

If the channel is closed with less than n items in it the remaining
items will be nil.

Note: I just started dabbling with core.async so there is probably a
better way to do this.

--

- Yohan Pereira

-- 
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.