NewListQueue create a list queue that specifies the number of worker threads
(maxThread int)
| 9 | |
| 10 | // NewListQueue create a list queue that specifies the number of worker threads |
| 11 | func 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 |