- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for _SINK (0.03 sec)
-
test/typeparam/chans.go
return } if f(v) { r <- v } } } }(ctx, c, f, r) return r } // _Sink returns a channel that discards all values sent to it. // This will leave a goroutine running until the context is canceled // or the returned channel is closed. func _Sink[Elem any](ctx context.Context) chan<- Elem { r := make(chan Elem) go func(ctx context.Context, r <-chan Elem) { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0)