}
func (s *InterleavedWeightedRoundRobinScheduler[T, K]) Start() {
interleaved_weighted_round_robin.go
if !atomic.CompareAndSwapInt32(
&s.status,
common.DaemonStatusInitialized,
common.DaemonStatusStarted,
) {
return
}
s.shutdownWG.Add(1)
go s.eventLoop()
s.shutdownWG.Add(1)
go s.cleanupLoop()
s.logger.Info("interleaved weighted round robin task scheduler started")
}