MCPcopy Index your code
hub / github.com/coder/envbox / flush

Method flush

buildlog/coder.go:94–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (c *agentClientV2) flush() error {
95 c.ls.Flush(c.source)
96 err := c.ls.WaitUntilEmpty(c.ctx)
97 if err != nil {
98 return xerrors.Errorf("wait until empty: %w", err)
99 }
100 return nil
101}
102
103func (c *agentClientV2) Close() error {
104 defer c.cancel()

Callers 2

SendMethod · 0.95
CloseMethod · 0.95

Calls 2

FlushMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected