package
0.0.0-20240223030422-19c4761de51a
Repository: https://github.com/skydarkstar/utils.git
Documentation: pkg.go.dev
# Functions
New creates a new batcher.
WithFlushCallback sets the flush callback of the batcher.
WithFlushInterval sets the optional flush interval of the batcher.
WithMaxCapacity sets the max capacity of the batcher.
# Type aliases
BatcherOption is the option for the batcher.
FlushCallback is the callback function that will be called when the batcher is full or the flush interval is reached.