| 21 | ) |
| 22 | |
| 23 | type canceler struct { |
| 24 | sync.Mutex |
| 25 | |
| 26 | subscribers map[chan struct{}]int64 |
| 27 | cancelled map[int64]time.Time |
| 28 | } |
| 29 | |
| 30 | func newCanceler() *canceler { |
| 31 | return &canceler{ |
nothing calls this directly
no outgoing calls
no test coverage detected