go like async channels in node
What are some of the good options to have go like channels in node. So far I have used,
1. https://www.npmjs.com/package/async-channel (facing weird bugs -- unhandled promise rejection randomly, not sure if it's a bug in my code or the library itself, need more time investigating).
2. Implemented something with eventemitter and async iterator.
3, Briefly tried to implement it using Node streams but it got too complex for what i think should be simple. Also was not sure how to make it work with typescript.
4. Saw this, https://deno.land/x/[email protected]
5. Saw this https://pedrocattori.dev/blog/go-like-channels-in-10-lines-of-javascript
Is there something better or more mature available in the node ecosystem to work with this pattern ?
npm
async-channel
Send asynchronous values across concurrent lines of execution. Latest version: 0.2.0, last published: 2 years ago. Start using async-channel in your project by running
npm i async-channel
. There are no other projects in the npm registry using async-channel.0 Replies