MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Close

Method Close

log/logwriter.go:47–61  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

45}
46
47func (lw *LogWriter) Close(ctx context.Context) error {
48 select {
49 case lw.ch <- nil:
50 select {
51 case <-ctx.Done():
52 return ctx.Err()
53 case <-lw.done:
54 return nil
55 }
56 case <-ctx.Done():
57 return ctx.Err()
58 case <-lw.done:
59 return nil
60 }
61}

Callers 1

runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected