code: func NewScheduler(size uint) *LatchesScheduler {
  	latches := NewLatches(size)
  	unlockCh := make(chan *Lock, lockChanSize)
  	scheduler := &LatchesScheduler{
  		latches:  latches,
  		unlockCh: unlockCh,
  		closed:   false,
  	}
  	go scheduler.run()
  	return scheduler
  }
docs: // NewScheduler create the LatchesScheduler.