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

Function newProcGroup

scripts/develop/main.go:527–530  ·  view source on GitHub ↗
(ctx context.Context, logger slog.Logger)

Source from the content-addressed store, hash-verified

525}
526
527func newProcGroup(ctx context.Context, logger slog.Logger) *procGroup {
528 eg, ctx := errgroup.WithContext(ctx)
529 return &procGroup{eg: eg, ctx: ctx, logger: logger}
530}
531
532// Start registers a long-running command with the group. It sets up
533// graceful shutdown (SIGINT on context cancel, SIGKILL after

Callers 3

TestProcGroupProcessExitFunction · 0.85
developFunction · 0.85

Calls 1

WithContextMethod · 0.80

Tested by 2

TestProcGroupProcessExitFunction · 0.68