This blog post is complementary to episode 27 of justforfunc which you can watch right below.
Two weeks ago I explained how nil channels were useful for some important concurrency patterns, specifically when merging two channels. As a result, because this is the internet, many replied telling me there’s better ways to merge two channels than that. And guess what, I agree!
The algorithm I showed is useful for only two channels.