I would like to know how to get the size of a channel in clojure. I tried it with count, but it's not supported. Clojure documentation is usally good, but this time I coudn't find anything about it.
Example:
(def channel1 (chan 3))
(println(count channel1))
Should be 3 but throws "count not supported on this type: ManyToManyChannel"
(chan 3)) is free to implement its buffer however it likes in the future, not necessarily the way it is implemented today. - amalloy