MCPcopy
hub / github.com/rgburke/grv / Dispose

Method Dispose

cmd/grv/diff_view.go:224–233  ·  view source on GitHub ↗

Dispose of any resources held by the view

()

Source from the content-addressed store, hash-verified

222
223// Dispose of any resources held by the view
224func (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
236func (diffView *DiffView) Render(win RenderWindow) (err error) {

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected