Documentation
¶
Overview ¶
Package for work in batch mode
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidType = errors.New("invalid type")
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch[T any] struct { // contains filtered or unexported fields }
Batch is a structure for batch processing
type Item ¶
type Item[T any] struct { CallbackChannel chan T Item T }
Item represents an item that can be pushed to the batch.
type Option ¶
Option is the type for batch options.
func WithInterval ¶
WithInterval sets the interval for the batch.
Click to show internal directories.
Click to hide internal directories.