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

Function MakeQuickReorderQueue

pkg/utilds/quickreorderqueue.go:44–51  ·  view source on GitHub ↗
(bufSize int, timeout time.Duration)

Source from the content-addressed store, hash-verified

42}
43
44func MakeQuickReorderQueue[T any](bufSize int, timeout time.Duration) *QuickReorderQueue[T] {
45 return &QuickReorderQueue[T]{
46 sessionOrder: make(map[string]int64),
47 nextSeqNum: 1,
48 outCh: make(chan T, bufSize),
49 timeout: timeout,
50 }
51}
52
53func (q *QuickReorderQueue[T]) C() <-chan T {
54 return q.outCh

Callers 1

SetupJobManagerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected