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

Method wait

agent/checkpoint.go:37–44  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

35}
36
37func (c *checkpoint) wait(ctx context.Context) error {
38 select {
39 case <-ctx.Done():
40 return ctx.Err()
41 case <-c.done:
42 return c.err
43 }
44}
45
46func newCheckpoint(logger slog.Logger) *checkpoint {
47 return &checkpoint{

Callers 3

Calls 2

ErrMethod · 0.80
DoneMethod · 0.45

Tested by 3