commentary improved

This commit is contained in:
Tordarus 2022-02-09 12:19:19 +01:00
parent 9696f7d42b
commit 6d79f07f5a

View File

@ -12,7 +12,8 @@ func determineBufferSize[T any](channels []<-chan T) int {
return bufSize / len(channels)
}
// Flush consumes all values and discards them immediately
// Flush consumes all values and discards them immediately.
// It blocks until all sources are closed
func Flush[T any](sources ...<-chan T) {
for range Merge(sources...) {
}