Skip to content

Commit 557db68

Browse files
committed
doc: add documentation for Queue.Done
1 parent aba6ea8 commit 557db68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ func (q *Queue) Block() {
156156
<-q.done
157157
}
158158

159+
// Done returns a channel that is closed when the Queue is closed (either
160+
// via Close or Cancel). Multiple calls always return the same channel.
159161
func (q *Queue) Done() <-chan struct{} {
160162
return q.done
161163
}

0 commit comments

Comments
 (0)