fixed bug in FlatChan
This commit is contained in:
parent
4e422b4243
commit
81d06f550c
2
flat.go
2
flat.go
@ -15,7 +15,7 @@ func FlatSlice[T any](source <-chan []T) <-chan T {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
func FlatChan[T any](source <-chan chan T) <-chan T {
|
func FlatChan[T any](source <-chan <-chan T) <-chan T {
|
||||||
out := make(chan T, cap(source))
|
out := make(chan T, cap(source))
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user