MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeMultiReaderLineBuffer

Function MakeMultiReaderLineBuffer

pkg/utilds/multireaderlinebuffer.go:17–27  ·  view source on GitHub ↗
(maxLines int)

Source from the content-addressed store, hash-verified

15}
16
17func MakeMultiReaderLineBuffer(maxLines int) *MultiReaderLineBuffer {
18 if maxLines <= 0 {
19 maxLines = 1000
20 }
21
22 return &MultiReaderLineBuffer{
23 lines: make([]string, 0, maxLines),
24 maxLines: maxLines,
25 totalLineCount: 0,
26 }
27}
28
29// callback is synchronous. will block the consuming of lines and
30// guaranteed to run in order. it is also guaranteed only one callback

Callers 3

StartMethod · 0.92
runTsunamiAppBinaryFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected