Based on feedback on my last post: https://news.ycombinator.com/item?id=38156519
I've been working on better documentation and examples, aimed at JavaScript developers without significant knowledge of concurrency-related patterns.
The first pattern I've covered is "fan-in". Aside from a side-by-side comparison, in the pattern doc linked in the question, I also implemented an example of the pattern, a "log aggregator", which multiplexes (TCP) log streams, formatting and writing out lines to a file. Details in the example readme: https://github.com/joeycumines/ts-chan/blob/main/examples/pa...
I'd appreciate it if you could let me know what you think, and if this is a step in a helpful direction.
Thanks :)