My code is at https://github.com/nodename/async-plgd . Here I reproduce Hoare's coroutines from the CSP paper, and find that none of the examples with pipelined coroutines work reliably. I'd appreciate any advice.
On Tue, Jul 16, 2013 at 4:34 PM, Alan Shaw <noden...@gmail.com> wrote: > It appears that you cannot call close! within a go block and so > to signal the end of input to a channel you have to use another channel > upon which the receiver can alt!. > > Some channels that are not stateful, such as a plain copier, would > need no such mechanism. Or would it be good to use such a thing > so the channel will get collected? > > Further, if I want to have a chain of coroutines pipelining data, > it would appear that control channels must be threaded through > all of them as long as at least one of them must be notified of > end of input. > > Is any of this correct? > > -A > > -- -- 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.