WaitForAllTasks implemented

This commit is contained in:
milarin 2023-03-06 13:24:06 +01:00
parent a241803476
commit 132a2a4200

View File

@ -77,3 +77,7 @@ func (v *View[K]) Report(task K, status string) {
func (v *View[K]) Done(task K) { func (v *View[K]) Done(task K) {
v.wg.Done() v.wg.Done()
} }
func (v *View[K]) WaitForAllTasks() {
v.wg.Wait()
}