MCPcopy
hub / github.com/wavetermdev/waveterm / Close

Method Close

pkg/streamclient/streamwriter.go:171–173  ·  view source on GitHub ↗

If Close() is called while a Write is blocked, the Write will return an error and buffered data may be discarded.

()

Source from the content-addressed store, hash-verified

169
170// If Close() is called while a Write is blocked, the Write will return an error and buffered data may be discarded.
171func (w *Writer) Close() error {
172 return w.CloseWithError(nil)
173}
174
175// If CloseWithError() is called while a Write is blocked, the Write will return an error and buffered data may be discarded.
176func (w *Writer) CloseWithError(err error) error {

Callers 1

TestEOFFunction · 0.95

Calls 1

CloseWithErrorMethod · 0.95

Tested by 1

TestEOFFunction · 0.76