From cb3703217d1f4b0c3721e7eec6af46cbc8b0a59f Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 10 Mar 2023 23:12:02 +0100 Subject: [PATCH] WaitForAllTasks reimplemented --- stat_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stat_test.go b/stat_test.go index 32d7a8d..c039289 100644 --- a/stat_test.go +++ b/stat_test.go @@ -9,8 +9,11 @@ import ( func TestStat(t *testing.T) { view := New[int]() + fmt.Println("asd") + for i := 0; i < 5; i++ { view.Add(i) + go func(id int) { defer view.Done(id)