In addition to the function tap, untap, and untap-all I would like to 
propose a fourth function which returns a count of the number of target 
channels for a mult.
I would call it "cnt" (or perhaps "cnt-taps" or "count-taps"), but probably 
not "count", as that would step on clojure.core/count.

My use case is as follows:
I need one or more channels to recieve data from an audio input stream.  I 
have to continuously read from the stream and write the data to a mult. But 
I don't want to run this reader-loop if nothing is tapped to the mult.  So 
I would like to check the count and start or stop the loop based on the 
number of taps.

I have a patch ready to be submitted.  ;-) 

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

Reply via email to