github.com/loov/combiner@v0.1.0/combine.go (about) 1 package combiner 2 3 // Batcher is the operation combining implementation. 4 // 5 // Batcher must not panic. 6 type Batcher interface { 7 // Start is called on a start of a new batch. 8 Start() 9 // Do is called for each batch element. 10 Do(arg interface{}) 11 // Finish is called after completing a batch. 12 Finish() 13 }