File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ type Batcher interface {
3434 // Flush forcibly completes the batch currently being built
3535 Flush () error
3636
37- // Dispose will dispose of the batcher. Any calls to Put or Get
38- // will return errors.
37+ // Dispose will dispose of the batcher. Any calls to Put or Flush
38+ // will return ErrDisposed, calls to Get will return an error iff
39+ // there are no more ready batches.
3940 Dispose ()
4041
4142 // IsDisposed will determine if the batcher is disposed
@@ -145,8 +146,9 @@ func (b *basicBatcher) Flush() error {
145146 return nil
146147}
147148
148- // Dispose will dispose of the batcher. Any calls to Put or Get
149- // will return errors.
149+ // Dispose will dispose of the batcher. Any calls to Put or Flush
150+ // will return ErrDisposed, calls to Get will return an error iff
151+ // there are no more ready batches.
150152func (b * basicBatcher ) Dispose () {
151153 b .lock .Lock ()
152154 if b .disposed {
You can’t perform that action at this time.
0 commit comments