func fanIn(input1, input2 <-chan string) <-chan string {
c := make(chan string)
go func() {
for {
c <- <-input1
}
}()
go func() {
for {
c <- <-input2
}
}()
return c
}
Go-Concurrency-Patterns
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||