package
0.2.14
Repository: https://github.com/projectdiscovery/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.
WithMaxSize sets the max size 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.