Dispose of any resources held by the view
()
| 222 | |
| 223 | // Dispose of any resources held by the view |
| 224 | func (diffView *DiffView) Dispose() { |
| 225 | diffView.lock.Lock() |
| 226 | |
| 227 | close(diffView.diffLoadRequestCh) |
| 228 | diffView.diffLoadRequestCh = nil |
| 229 | |
| 230 | diffView.lock.Unlock() |
| 231 | |
| 232 | diffView.waitGroup.Wait() |
| 233 | } |
| 234 | |
| 235 | // Render generates and writes the diff view to the provided window |
| 236 | func (diffView *DiffView) Render(win RenderWindow) (err error) { |