mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-28 16:06:49 +00:00
The FakeWatcher allows sends on the result channel after it's closed, for example calling Stop() then Add() will panic. RaceFreeFakeWatcher checks whether the watcher is stopped before attempting to send. It also panics instead of blocking when the result channel is full. Kubernetes-commit: b84ad8828b6ffe0dd289f69e395968eabb9fbeaa