MCPcopy Create free account
hub / github.com/devploit/nomore403 / redrawActiveProgress

Function redrawActiveProgress

cmd/progress.go:33–40  ·  view source on GitHub ↗

redrawActiveProgress redraws the active progress bar after output. Caller MUST hold printMutex.

()

Source from the content-addressed store, hash-verified

31// redrawActiveProgress redraws the active progress bar after output.
32// Caller MUST hold printMutex.
33func redrawActiveProgress() {
34 if activeProgress != nil && progressEnabled() {
35 c := atomic.LoadInt64(&activeProgress.completed)
36 if c < activeProgress.total {
37 activeProgress.renderLocked(c)
38 }
39 }
40}
41
42// progress tracks completion of requests within a technique and renders
43// an inline progress bar on stderr.

Callers 2

printResultFunction · 0.85

Calls 1

renderLockedMethod · 0.80

Tested by

no test coverage detected