MCPcopy Create free account
hub / github.com/LyricTian/queue / NewListQueue

Function NewListQueue

list_queue.go:11–13  ·  view source on GitHub ↗

NewListQueue create a list queue that specifies the number of worker threads

(maxThread int)

Source from the content-addressed store, hash-verified

9
10// NewListQueue create a list queue that specifies the number of worker threads
11func NewListQueue(maxThread int) *ListQueue {
12 return NewListQueueWithMaxLen(maxThread, 0)
13}
14
15// NewListQueueWithMaxLen create a list queue that specifies the number of worker threads
16// and the maximum number of elements

Callers 4

TestListQueueFunction · 0.85
ExampleListQueueFunction · 0.85
BenchmarkListQueueFunction · 0.85
RunListQueueFunction · 0.85

Calls 1

NewListQueueWithMaxLenFunction · 0.85

Tested by 3

TestListQueueFunction · 0.68
ExampleListQueueFunction · 0.68
BenchmarkListQueueFunction · 0.68