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

Method closeAfterContext

cli/ssh.go:1361–1364  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1359}
1360
1361func (c *closerStack) closeAfterContext(ctx context.Context) {
1362 <-ctx.Done()
1363 c.close(ctx.Err())
1364}
1365
1366func (c *closerStack) close(err error) {
1367 c.Lock()

Callers 1

newCloserStackFunction · 0.95

Calls 3

closeMethod · 0.95
ErrMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected