mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-04-21 11:06:27 +08:00
informers: add comment that Start does not block
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com> Kubernetes-commit: cd69335542fd961b69b4e83b6433d1b40d2f4439
This commit is contained in:
parent
bbe19029d1
commit
6b8701f30b
@ -228,6 +228,7 @@ type SharedInformerFactory interface {
|
|||||||
|
|
||||||
// Start initializes all requested informers. They are handled in goroutines
|
// Start initializes all requested informers. They are handled in goroutines
|
||||||
// which run until the stop channel gets closed.
|
// which run until the stop channel gets closed.
|
||||||
|
// Warning: Start does not block. When run in a go-routine, it will race with a later WaitForCacheSync.
|
||||||
Start(stopCh <-chan struct{})
|
Start(stopCh <-chan struct{})
|
||||||
|
|
||||||
// Shutdown marks a factory as shutting down. At that point no new
|
// Shutdown marks a factory as shutting down. At that point no new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user