MCPcopy Create free account
hub / github.com/cph6/zsync / NewProgressReporter

Function NewProgressReporter

cmd/zsync/main.go:353–361  ·  view source on GitHub ↗
(zs *zsync.Syncer)

Source from the content-addressed store, hash-verified

351}
352
353func NewProgressReporter(zs *zsync.Syncer) (p *progressReporter) {
354 p = &progressReporter{
355 zs: zs,
356 ticker: time.NewTicker(time.Second),
357 stopTicker: make(chan struct{}),
358 }
359 go p.ShowProgressLoop()
360 return
361}
362
363func (p *progressReporter) Close() {
364 p.ticker.Stop()

Callers 1

mainFunction · 0.85

Calls 1

ShowProgressLoopMethod · 0.80

Tested by

no test coverage detected