【发布时间】:2014-01-22 12:51:16
【问题描述】:
考虑以下 sn-p:
(let [chs (repeatedly 10 chan)]
(doseq [c chs]
(>!! c "hello"))
(doseq [c chs]
(println (<!! c))))
执行此操作将永远挂起。这是为什么呢?
如果我改为使用(go (>! c "hello")),它就可以正常工作。
【问题讨论】:
标签: clojure core.async