Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewRaceFreeFake (0.52 sec)

  1. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    }
    
    // RaceFreeFakeWatcher lets you test anything that consumes a watch.Interface; threadsafe.
    type RaceFreeFakeWatcher struct {
    	result  chan Event
    	Stopped bool
    	sync.Mutex
    }
    
    func NewRaceFreeFake() *RaceFreeFakeWatcher {
    	return &RaceFreeFakeWatcher{
    		result: make(chan Event, DefaultChanSize),
    	}
    }
    
    // Stop implements Interface.Stop().
    func (f *RaceFreeFakeWatcher) Stop() {
    	f.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
Back to top