// Stop stops the executor. Goroutines that already were running will continue to run, unless cancelled otherwise.
Stop stops the executor. Goroutines that already were running will continue to run, unless cancelled otherwise.
// Stop stops the executor . Goroutines that already were running will continue to run unless cancelled otherwise .
func (p *LimitingExecutor) Stop() {
	p.lock.Lock()
	defer p.lock.Unlock()
	if p.ingest != nil {
		close(p.ingest)
		p.ingest = nil
	}
}
func ( p * LimitingExecutor ) Stop ( ) { p . lock . Lock ( ) defer p . lock . Unlock ( ) if p . ingest != nil { close ( p . ingest ) p . ingest = nil } }
Stop stops the executor.
Stop stops the executor .