code: func (d *CacheDebugger) ListenForSignal(stopCh <-chan struct{}) {
  	ch := make(chan os.Signal, 1)
  	signal.Notify(ch, compareSignal)
  
  	go func() {
  		for {
  			select {
  			case <-stopCh:
  				return
  			case <-ch:
  				d.Comparer.Compare()
  				d.Dumper.DumpAll()
  			}
  		}
  	}()
  }
docs: // ListenForSignal starts a goroutine that will trigger the CacheDebugger's
  // behavior when the process receives SIGINT (Windows) or SIGUSER2 (non-Windows).