Having a buffered chan, say
(def c (clojure.core.async/chan 100))
is it possible to query how many elements are currently inside the chan?
Having a buffered chan, say
(def c (clojure.core.async/chan 100))
is it possible to query how many elements are currently inside the chan?
The instantiated channel is from
ManyToManyChanneltype, you can access the internal buffer for the channel using thebufproperty.That buffer implements
clojure.lang.Countedso it's countable.