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

Method Wait

pkg/util/tomb/tomb.go:133–140  ·  view source on GitHub ↗

Wait blocks until all goroutines have finished running, and then returns the reason for their death.

()

Source from the content-addressed store, hash-verified

131// Wait blocks until all goroutines have finished running, and
132// then returns the reason for their death.
133func (t *Tomb) Wait() error {
134 t.init()
135 <-t.dead
136 t.m.Lock()
137 reason := t.reason
138 t.m.Unlock()
139 return reason
140}
141
142// Go runs f in a new goroutine and tracks its termination.
143//

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected