(tap mult ch) (tap mult ch close?)
Copies the mult source onto the supplied channel. By default the channel will be closed when the source closes, but can be determined by the close? parameter.
user=> (def sz 20)
#'user/sz
user=> (def c (chan sz))
#'user/c
user=> (def mult-c (mult c))
#'user/mult-c
user=> (def cx (chan sz))
#'user/cx
user=> (def cy (chan sz))
#'user/cy
user=> (def cz (chan sz))
#'user/cz
user=> (tap mult-c cx)
#<ManyToManyChannel clojure.core.async.impl.channels.ManyToManyChannel@63942268>
user=> (tap mult-c cy)
#<ManyToManyChannel clojure.core.async.impl.channels.ManyToManyChannel@1f025346>
user=> (tap mult-c cz)
#<ManyToManyChannel clojure.core.async.impl.channels.ManyToManyChannel@29d4cd91>
user=> (put! c "sent to all")
true
user=> (<!! cx)
"sent to all"
user=> (<!! cy)
"sent to all"
user=> (<!! cz)
"sent to all"