Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

`clojure
(def c1 (chan))
(def c2 (chan))
(def out (a/map vector (link: c1 c2)))
(a/close! c1)
(a/<!! out) ;; will hangs until I put item to c2 or close c2
`

I think the better way is close output channel immediately when any of input channels closed.

2 Answers

0 votes
by

Comment made by: isaac-zeng

more clearly title with cloned https://dev.clojure.org/jira/browse/ASYNC-211
closed this one, please

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-197 (reported by isaac-zeng)
...