chan
chan copied to clipboard
A go style channel implementation for JavaScript that works well with co
Remaining things to do before merging: - [ ] Write tests for new code in `src/` (could be based on old test that are not removed yet) - [x] Add...
basically the `default` cases here: https://gobyexample.com/non-blocking-channel-operations couldn't really see anything from the code, but in the original PR with the switch statement makes me think that it's possible
fix stream demo problem
While reading the doc at https://github.com/brentburg/chan#sending-values-to-the-channel, it appears that this code should execute the callback: ``` js ch('foo')(function (err) { if (err) { // There was an error putting the...