MCPcopy Create free account
hub / github.com/coder/coder / procGroup

Struct procGroup

scripts/develop/main.go:521–525  ·  view source on GitHub ↗

procGroup tracks child processes using an errgroup. When any child exits, the errgroup cancels its derived context, aborting all downstream operations. Graceful shutdown is handled by cmd.Cancel/WaitDelay on each command.

Source from the content-addressed store, hash-verified

519// all downstream operations. Graceful shutdown is handled by
520// cmd.Cancel/WaitDelay on each command.
521type procGroup struct {
522 eg *errgroup.Group
523 ctx context.Context
524 logger slog.Logger
525}
526
527func newProcGroup(ctx context.Context, logger slog.Logger) *procGroup {
528 eg, ctx := errgroup.WithContext(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected