admix

added

ns
clojure.core.async

type
function

(admix mix ch)

Adds ch as an input to the mix

                user=> (def ch-out (chan))
#'user/ch-out

user=> (def mix-out (mix ch-out))
#'user/mix-out

user=> (def ch-example1 (chan))
#'user/ch-example1

user=> (def ch-example2 (chan))
#'user/ch-example2

user=> (admix mix-out ch-example1)
true

user=> (admix mix-out ch-example2)
true

user=> (put! ch-example1 "sent to chan 1")
true

user=> (put! ch-example2 "sent to chan 2")
true

user=> (<!! ch-out)
"sent to chan 1"

user=> (<!! ch-out)
"sent to chan 2"