code: func (ttles *TTLExpirationScheduler) Stop() {
  	ttles.Lock()
  	defer ttles.Unlock()
  
  	if err := ttles.writeState(); err != nil {
  		dcontext.GetLogger(ttles.ctx).Errorf("Error writing scheduler state: %s", err)
  	}
  
  	for _, entry := range ttles.entries {
  		entry.timer.Stop()
  	}
  
  	close(ttles.doneChan)
  	ttles.saveTimer.Stop()
  	ttles.stopped = true
  }
docs: // Stop stops the scheduler.