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

Function newCloserStack

cli/ssh.go:1351–1359  ·  view source on GitHub ↗
(ctx context.Context, logger slog.Logger, clock quartz.Clock)

Source from the content-addressed store, hash-verified

1349}
1350
1351func newCloserStack(ctx context.Context, logger slog.Logger, clock quartz.Clock) *closerStack {
1352 cs := &closerStack{
1353 logger: logger,
1354 allDone: make(chan struct{}),
1355 clock: clock,
1356 }
1357 go cs.closeAfterContext(ctx)
1358 return cs
1359}
1360
1361func (c *closerStack) closeAfterContext(ctx context.Context) {
1362 <-ctx.Done()

Callers 9

TestCloserStack_MainlineFunction · 0.85
TestCloserStack_EmptyFunction · 0.85
TestCloserStack_ContextFunction · 0.85
TestCloserStack_TimeoutFunction · 0.85
TestCoderConnectStdioFunction · 0.85
sshMethod · 0.85

Calls 1

closeAfterContextMethod · 0.95