- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AddRunFunction (0.09 sec)
-
pilot/pkg/leaderelection/leaderelection.go
return l.revision == currentLeaderRevision && !l.remote && currentLeaderRemote } // AddRunFunction registers a function to run when we are the leader. These will be run asynchronously. // To avoid running when not a leader, functions should respect the stop channel. func (l *LeaderElection) AddRunFunction(f func(stop <-chan struct{})) *LeaderElection { l.runFns = append(l.runFns, f) return l }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 16:44:32 UTC 2024 - 9.7K bytes - Viewed (0)