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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Async/await for Node.js – my first OSS contribution. Feedback welcome!

1 点作者 yortus大约 11 年前
The project is here: https:&#x2F;&#x2F;github.com&#x2F;yortus&#x2F;node-async-await<p>Background: I was looking for a way to write node.js asynchronous code in a synchronous-looking style (ie like C#&#x27;s async&#x2F;await). As an additional constraint, it couldn&#x27;t be based on ES6 generators, because I write in TypeScript which doesn&#x27;t yet support them. So I wrote this tiny module based on node-fibers. It has made my node.js code much more maintainable. I hope it helps someone else!

暂无评论

暂无评论