Skip to content

Files

Latest commit

16da155 · Feb 20, 2018

History

History
This branch is up to date with campoy/justforfunc:master.

27-merging-chans

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 20, 2018
Feb 6, 2018
Feb 6, 2018

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.