From 132a2a42000b0f17d62f782750938be72ff209e1 Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 6 Mar 2023 13:24:06 +0100 Subject: [PATCH] WaitForAllTasks implemented --- view.go | 4 ++++ 1 file changed, 4 insertions(+) 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() +}