Skip to content

Files

Latest commit

e753aa3 · Sep 24, 2017

History

History
26 lines (21 loc) · 389 Bytes

File metadata and controls

26 lines (21 loc) · 389 Bytes

Here is the video

Go Concurrency Patterns

Here is some pic

2>1

func fanIn(input1, input2 <-chan string) <-chan string {
	c := make(chan string)
	go func() {
		for {
			c <- <-input1
		}
	}()
	go func() {
		for {
			c <- <-input2
		}
	}()
	return c
}