// Swap places each job into the other job's position given
// the provided job indexes.
Swap places each job into the other job's position given
the provided job indexes.
// Swap places each job into the other job ' s position given // the provided job indexes .
func (s *Scheduler) Swap(i, j int) {
	s.jobsMutex.Lock()
	defer s.jobsMutex.Unlock()
	s.jobs[i], s.jobs[j] = s.jobs[j], s.jobs[i]
}
func ( s * Scheduler ) Swap ( i , j int ) { s . jobsMutex . Lock ( ) defer s . jobsMutex . Unlock ( ) s . jobs [ i ] , s . jobs [ j ] = s . jobs [ j ] , s . jobs [ i ] }
Swap places each job into the other job's position given
the provided job indexes.
Swap places each job into the other job ' s position given the provided job indexes .