func (b *Buffer) CancelDetects() {
	b.lock.Lock()
	defer b.lock.Unlock()

	close(b.detectCloser)
	b.detectCloser = nil
}
func (b *Buffer) CancelDetects() {
	b.lock.Lock()
	defer b.lock.Unlock()

	close(b.detectCloser)
	b.detectCloser = nil
}
func ( b * Buffer ) CancelDetects ( ) { b . lock . Lock ( ) defer b . lock . Unlock ( ) close ( b . detectCloser ) b . detectCloser = nil }
/*
CancelDetects cancels any pending detects and cleans up their goroutines.  You should always call this when you're done with a set of Detect channels.
*/
/ * CancelDetects cancels any pending detects and cleans up their goroutines . You should always call this when you re done with a set of Detect channels .