From 557db687b8f5665f87ee340cd6eeb5ac412a4d86 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Thu, 6 Jul 2017 09:18:25 -0400 Subject: [PATCH] doc: add documentation for Queue.Done --- fetch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fetch.go b/fetch.go index 9a71a32..98ebfb6 100644 --- a/fetch.go +++ b/fetch.go @@ -156,6 +156,8 @@ func (q *Queue) Block() { <-q.done } +// Done returns a channel that is closed when the Queue is closed (either +// via Close or Cancel). Multiple calls always return the same channel. func (q *Queue) Done() <-chan struct{} { return q.done }