Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WatchWithPrefix (0.28 sec)

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

    	m.Shutdown()
    
    	_, err := m.Watch()
    	assert.EqualError(t, err, "broadcaster already stopped", "Watch should report error id broadcaster is shutdown")
    
    	_, err = m.WatchWithPrefix([]Event{event1, event2})
    	assert.EqualError(t, err, "broadcaster already stopped", "WatchWithPrefix should report error id broadcaster is shutdown")
    }
    
    func TestBroadcasterSendEventAfterShutdown(t *testing.T) {
    	m := NewBroadcaster(1, DropIfChannelFull)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 15:26:25 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/watch/mux.go

    			id:      id,
    			m:       m,
    		}
    		m.watchers[id] = w
    	})
    	if w == nil {
    		return nil, fmt.Errorf("broadcaster already stopped")
    	}
    	return w, nil
    }
    
    // WatchWithPrefix adds a new watcher to the list and returns an Interface for it. It sends
    // queuedEvents down the new watch before beginning to send ordinary events from Broadcaster.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 15:26:36 UTC 2022
    - 9.4K bytes
    - Viewed (0)
Back to top