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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What concurrency in Node.js could have been

5 点作者 erjiang将近 11 年前

3 条评论

yortus将近 11 年前
Using asyncawait (<a href="https://github.com/yortus/asyncawait" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yortus&#x2F;asyncawait</a>):<p><pre><code> var bakeCookies = async (function(cookie_mix) { print(&quot;Baking cookies...&quot;); var oven = new Oven(cookie_mix); var cookies = await (oven.bake(15)); &#x2F;&#x2F; bake for fifteen minutes cookies.decorate(); return cookies; }); </code></pre> It&#x27;s plain JavaScript, concurrent, and works with plain node.js, unlike StratifiedJS.
mattkrea将近 11 年前
So since it seems to me that this article entirely failed to mention why the callback pattern was harmful could someone else?
评论 #7990466 未加载
bjouhier将近 11 年前
The point about fibers is incorrect. I posted a detailed comment on your blog.