WaitForAllTasks reimplemented

This commit is contained in:
milarin 2023-03-10 23:12:02 +01:00
parent ea2554519f
commit cb3703217d

View File

@ -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)