func (b *ChannelMemoryBackend) Stop() {
	b.mu.Lock()
	if b.running == true {
		b.running = false
		b.events <- eventStop
	}
	b.mu.Unlock()
	b.stopWg.Wait()
}
func (b *ChannelMemoryBackend) Stop() {
	b.mu.Lock()
	if b.running == true {
		b.running = false
		b.events <- eventStop
	}
	b.mu.Unlock()
	b.stopWg.Wait()
}
func ( b * ChannelMemoryBackend ) Stop ( ) { b . mu . Lock ( ) if b . running == true { b . running = false b . events <- eventStop } b . mu . Unlock ( ) b . stopWg . Wait ( ) }
// Stop signals the internal goroutine to exit and waits until it have.
Stop signals the internal goroutine to exit and waits until it have .