TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Go Concurrency Patterns ported to Clojure

75 点作者 olenhad超过 11 年前

2 条评论

_halgari超过 11 年前
Using Thread&#x2F;sleep inside of a go block is questionable. Using &gt;!! and &lt;!! inside a go block is simply wrong. Please switch to &lt;! and &gt;! and if you aren&#x27;t simulating actual work, remove Thread&#x2F;sleep. Failing to do so can seriously mess with the core.async thread pool.<p>Doing blocking operations inside a go is a anti-pattern.
评论 #6394201 未加载
评论 #6393608 未加载
评论 #6393777 未加载
评论 #6394188 未加载
评论 #6394394 未加载
danneu超过 11 年前
Haha, I had a double-take when I clicked the link.<p>I didn&#x27;t mean to misrepresent core.async. I just heard about it one day and got compelled enough by a walkthrough[1] to convince myself I could figure enough of it out to make something happen in my nrepl buffer. Which happens to also describe my approach to life now that I think about it. Except, you know, in my life buffer.<p>[1]: <a href="https://github.com/clojure/core.async/blob/master/examples/walkthrough.clj" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;clojure&#x2F;core.async&#x2F;blob&#x2F;master&#x2F;examples&#x2F;w...</a>