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.

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

1 pointsby yortusabout 11 years ago
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!

no comments

no comments