From acfe7532d15af733dbe61ff4474545b152a7a601 Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 6 Mar 2023 14:17:49 +0100 Subject: [PATCH] fixed doneCh buffer size --- view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.go b/view.go index ad28135..c9d74a9 100644 --- a/view.go +++ b/view.go @@ -33,7 +33,7 @@ func NewForWriter[K comparable](w io.Writer) *View[K] { taskMap: map[K]struct{}{}, reportCh: make(chan report[K], 100), - doneCh: make(chan struct{}), + doneCh: make(chan struct{}, 1), lastReports: map[K]report[K]{}, wg: &sync.WaitGroup{}, }