Wait blocks until all currently running tasks are finished.
(ctx context.Context)
| 475 | |
| 476 | // Wait blocks until all currently running tasks are finished. |
| 477 | func (q *DiskQueue) Wait(ctx context.Context) error { |
| 478 | return q.scheduler.Wait(ctx, q.id) |
| 479 | } |
| 480 | |
| 481 | // PrepareForBackup pauses the queue and flushes all tasks to disk to prepare |
| 482 | // for backup. It also promotes the current partial chunk into a sealed file |
no outgoing calls