Skip to content

Commit

Permalink
allow done to buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertWHurst committed Jan 23, 2025
1 parent adf7aac commit 5630432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func (c *Context) Deadline() (time.Time, bool) {
// Done added for compatibility with go's context.Context. Alias for
// UntilFinish(). Done is part of the go context.Context interface.
func (c *Context) Done() <-chan struct{} {
doneChan := make(chan struct{})
doneChan := make(chan struct{}, 1)
c.doneHandlers = append(c.doneHandlers, func() {
doneChan <- struct{}{}
})
Expand Down

0 comments on commit 5630432

Please sign in to comment.