MCPcopy Create free account
hub / github.com/devspace-sh/devspace / init

Method init

pkg/util/tomb/tomb.go:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95)
96
97func (t *Tomb) init() {
98 t.m.Lock()
99 if t.dead == nil {
100 t.dead = make(chan struct{})
101 t.dying = make(chan struct{})
102 t.reason = ErrStillAlive
103 }
104 t.m.Unlock()
105}
106
107func (t *Tomb) Terminated() bool {
108 t.init()

Callers 10

TerminatedMethod · 0.95
DeadMethod · 0.95
DyingMethod · 0.95
WaitMethod · 0.95
GoMethod · 0.95
NotifyGoMethod · 0.95
KillMethod · 0.95
ErrMethod · 0.95
WithContextFunction · 0.95
ContextMethod · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected