(ctx context.Context)
| 129 | } |
| 130 | |
| 131 | func (v *Queue) reportProgress(ctx context.Context) { |
| 132 | cb := v.ProgressCallback |
| 133 | if cb != nil { |
| 134 | cb(ctx, v.enqueuedWork, v.activeWorkerCount, v.completedWork) |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | func (v *Queue) maybeReportProgress(ctx context.Context) { |
| 139 | if clock.Now().Before(v.nextReportTime) { |
no outgoing calls
no test coverage detected