code: func (scheduler *LatchesScheduler) Close() {
  	scheduler.RWMutex.Lock()
  	defer scheduler.RWMutex.Unlock()
  	if !scheduler.closed {
  		close(scheduler.unlockCh)
  		scheduler.closed = true
  	}
  }
docs: // Close closes LatchesScheduler.