MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / progressUpdateCallback

Method progressUpdateCallback

pkg/unpackerr/progress.go:49–53  ·  view source on GitHub ↗
(item *Extract)

Source from the content-addressed store, hash-verified

47}
48
49func (u *Unpackerr) progressUpdateCallback(item *Extract) func(xtractr.Progress) {
50 return func(prog xtractr.Progress) { // sends update to u.handleProgress() (below)
51 u.progChan <- &ExtractProgress{Progress: &prog, Extract: item}
52 }
53}
54
55// exp = what just came in, it's ephemeral.
56// exp.Progress = also what just came in, must set it here.

Callers 2

extractTrackedItemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected