WaitForAllTasks reimplemented
This commit is contained in:
parent
ea2554519f
commit
cb3703217d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user