ultrago/reactive/channels.go

8 lines
101 B
Go
Raw Permalink Normal View History

2024-08-13 15:38:22 +00:00
package reactive
func Copy[T any](in <-chan T, out chan<- T) {
for v := range in {
out <- v
}
}