(params OpsQueueParams)
| 80 | } |
| 81 | |
| 82 | func newOpsQueueBase[T opsQueueItem](params OpsQueueParams) *opsQueueBase[T] { |
| 83 | o := &opsQueueBase[T]{ |
| 84 | params: params, |
| 85 | wake: make(chan struct{}, 1), |
| 86 | doneChan: make(chan struct{}), |
| 87 | } |
| 88 | o.ops.SetBaseCap(int(min(params.MinSize, 128))) |
| 89 | return o |
| 90 | } |
| 91 | |
| 92 | func (oq *opsQueueBase[T]) Start() { |
| 93 | oq.lock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…