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{}, }