Implementation for Watch
| 959 | |
| 960 | // Implementation for Watch |
| 961 | type watcher struct { |
| 962 | mu sync.Mutex |
| 963 | updates chan KeyValueEntry |
| 964 | sub *Subscription |
| 965 | initDone bool |
| 966 | initPending uint64 |
| 967 | received uint64 |
| 968 | ctx context.Context |
| 969 | initDoneTimer *time.Timer |
| 970 | errCh chan error |
| 971 | } |
| 972 | |
| 973 | // Context returns the context for the watcher if set. |
| 974 | func (w *watcher) Context() context.Context { |
nothing calls this directly
no outgoing calls
no test coverage detected