(size int)
| 106 | type Option func(b *Batcher) |
| 107 | |
| 108 | func WithBatchSize(size int) Option { |
| 109 | return func(b *Batcher) { |
| 110 | b.maxBatchSize = size |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func WithInterval(d time.Duration) Option { |
| 115 | return func(b *Batcher) { |
no outgoing calls