ultrago/reactive/channels.go
2024-08-13 18:40:06 +03:00

7 lines
101 B
Go

package reactive
func Copy[T any](in <-chan T, out chan<- T) {
for v := range in {
out <- v
}
}