ClojureDocs

Nav

Namespaces

untap

  • (untap mult ch)
Disconnects a target channel from a mult
1 Example
(def c (chan))
(def m (mult c))

(def d (chan))
(tap m d)


(put! c 5)
(go (println (<! d))); PRINTS 5


(untap m d)
(go (println (<! d))) ; PRINTS NOTHING

(put! c 55)

(tap m d)
(go (println (<! d))) ; STILL PRINTS NOTHING. THE MESSAGE WAS DROPPED 


See Also

Copies the mult source onto the supplied channel. By default the channel will be closed when the ...

Added by schmee

Creates and returns a mult(iple) of the supplied channel. Channels containing copies of the channe...

Added by schmee

Disconnects all target channels from a mult

Added by schmee
0 Notes
No notes for untap