MCPcopy Create free account
hub / github.com/devld/go-drive / Total

Method Total

script/call_common.go:76–87  ·  view source on GitHub ↗
(total int64, abs bool)

Source from the content-addressed store, hash-verified

74}
75
76func (s *scriptTaskCtx) Total(total int64, abs bool) {
77 s.mu.Lock()
78 defer s.mu.Unlock()
79 if abs {
80 s.total = total
81 } else {
82 s.total += total
83 }
84 if s.onUpdate != nil {
85 s.onUpdate.Call(s, s.loaded, s.total)
86 }
87}
88
89type contextWithTimeout struct {
90 Context Context

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
CallMethod · 0.45

Tested by

no test coverage detected