Concurrent streaming in Go with channels
The previous exercises map a finite slice with sync.WaitGroup or errgroup. This version processes values as they arrive. The input size does not need to be known, and successful results can be consumed before the input channel closes.
Stream accepts a receive-only input channel and returns separate receive-only result and error channels. A fixed worker pool bounds concurrency.
