MCPcopy Index your code
hub / github.com/coder/coder / WithReaperStopped

Function WithReaperStopped

agent/reaper/reaper.go:58–62  ·  view source on GitHub ↗

WithReaperStopped sets a channel that is closed after the reaper goroutine has fully exited.

(ch chan struct{})

Source from the content-addressed store, hash-verified

56// WithReaperStopped sets a channel that is closed after the
57// reaper goroutine has fully exited.
58func WithReaperStopped(ch chan struct{}) Option {
59 return func(o *options) {
60 o.ReaperStopped = ch
61 }
62}
63
64// WithReapLock sets a mutex shared between the reaper and Wait4.
65// The reaper holds the write lock while reaping, and ForkReap

Callers 1

withDoneFunction · 0.92

Calls

no outgoing calls

Tested by 1

withDoneFunction · 0.74