package
1.0.5
Repository: https://github.com/vnhacker1337/go-toolkit.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.

# Structs

Batcher is a batcher for any type of data.

# 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.