MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / NewQueue

Function NewQueue

pkg/generic/queue.go:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5}
6
7func NewQueue[T any]() *Queue[T] {
8 return &Queue[T]{queue: make([]T, 0)}
9}
10
11func (q *Queue[T]) Push(v T) {
12 q.queue = append(q.queue, v)

Callers 3

NewInMemoryMQFunction · 0.92
FsRecursiveMoveFunction · 0.92
FsRemoveEmptyDirectoryFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected