Skip to content

Commit

Permalink
Merge pull request #18 from Storytel/asyncblock-with-buffer
Browse files Browse the repository at this point in the history
AsyncBlock: Add buffer to async block channel
  • Loading branch information
noseglid authored Sep 9, 2024
2 parents 9147613 + a9aff0c commit 3e57737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type AsyncBlockMatcher struct {
// to wait for that invokation (using `<- matcher.Channel()`) and then do assertions.
func AsyncBlock(matcher gomock.Matcher) *AsyncBlockMatcher {
return &AsyncBlockMatcher{
ch: make(chan struct{}),
ch: make(chan struct{}, 1024),
matcher: matcher,
}
}
Expand Down

0 comments on commit 3e57737

Please sign in to comment.