Skip to content

Latest commit

 

History

History

27-merging-chans

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Two ways of merging N channels

After the previous episode I got many questions from people wondering what was the best way to merge a dynamic number of channels into one.

Well, this is my answer, and because one answer is never enough I'm giving you two of them! One uses many goroutines, the other one reflection.

Basic Benchmarks

As a follow up to the episode, episode 28 covers how to create benchmarks.