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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Clojure's concurrent agents in action

39 点作者 spoon16将近 13 年前

2 条评论

dreish将近 13 年前
send should never be used in a function that will not keep the CPU busy, such as one that calls Thread/sleep. send-off, which will allocate a new thread rather than taking up a slot in Clojure's fixed-size agent thread pool, should be used instead.
评论 #4309270 未加载
dkhenry将近 13 年前
Another great tool in the Programmer tool kit. If you wanted this same concept on Scala or Java I recommend Akka2<p><a href="http://doc.akka.io/docs/akka/2.0.2/scala/agents.html" rel="nofollow">http://doc.akka.io/docs/akka/2.0.2/scala/agents.html</a>