Skip to content

Commit

Permalink
doc: add documentation for Queue.Done
Browse files Browse the repository at this point in the history
  • Loading branch information
mna committed Jul 6, 2017
1 parent aba6ea8 commit 557db68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 557db68

Please sign in to comment.