TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Go Concurrency Patterns ported to Clojure

75 pointsby olenhadover 11 years ago

2 comments

_halgariover 11 years ago
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 未加载
danneuover 11 years ago
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>