Make the channel unbuffered, that way it turns into a rondevouz a la ada and every producer will block until a consumer takes something from it.
cheers Jan > On 16.02.2015, at 21:45, Huey Petersen <eys...@gmail.com> wrote: > > Hello, > > I was playing around with having a lazy sequence abstracting over a paged > http request. First off, maybe this is dumb, I dunno, lemme know ;p > > So (resources "url") returns a seq and no http request is made, but (take 1 > (resources "url")) makes a request and (take 50 (resources "url")) may make > multiple requests (depending on how many per page). > > I'm wondering if it is possible to implement the same thing as a channel -- > no http request is made until someone tries to take from it. More of a > curiosity. > > Thanks! > -- > 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. -- 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.