From d34ef66014cd6bdaed5ea261a06d921fa1103067 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Mon, 27 Sep 2021 11:06:44 +0200 Subject: [PATCH] docs: readme --- workgroups.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workgroups.go b/workgroups.go index 1a6f09a..6840171 100644 --- a/workgroups.go +++ b/workgroups.go @@ -1,5 +1,5 @@ // Package workgroups is a little helper for creating workers -// with the help of sync.Errgroup. +// with the help of (sync.Errgroup) https://pkg.go.dev/golang.org/x/sync/errgroup. // // (image/build) https://ci.xsfx.dev/api/badges/xsteadfastx/workgroups/status.svg // (image/coverage) https://codecov.io/gh/xsteadfastx/workgroups/branch/main/graph/badge.svg?token=RZE1ZWJSYA @@ -110,6 +110,7 @@ func (d *Dispatcher) Close() { close(d.queue) } +// Wait for all jobs to finnish. func (d *Dispatcher) Wait() error { log.Debug().Msg("waiting for jobs to finnish")