Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddRunFunction (0.22 sec)

  1. 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)
Back to top