|
|
|
|
|
by joeycumines
960 days ago
|
|
Sure, I intend to give it a shot. I will say though, I personally get the impression that attempts at "concurrency" in JavaScript (in production code) are quite rare, which I attribute to how difficult it is. That is to say, I don't know if there really _is_ a "default pattern". |
|
Here:
Could you give a side by side comparison (with and without ts-chan) so we can better understand what kind of problem it is attempting to solve?My understanding was that Go channels / CSP solves concurrency in a multithreaded environment where reads/writes need to coordinated, but since JavaScript is single threaded, I'm not sure I understand why they would be useful in JavaScript. In JavaScript concurrent tasks can simply communicate by writing/reading shared variables.