diff --git a/view.go b/view.go index 5dc57ba..f5b645e 100644 --- a/view.go +++ b/view.go @@ -77,3 +77,7 @@ func (v *View[K]) Report(task K, status string) { func (v *View[K]) Done(task K) { v.wg.Done() } + +func (v *View[K]) WaitForAllTasks() { + v.wg.Wait() +}