batch

package
v0.3.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Batch

func Batch(values <-chan *pulsarutils.ConsumerMessage, maxItems int,
	maxTimeout time.Duration, bufferSize int, clock clock.Clock,
) chan []*pulsarutils.ConsumerMessage

Batch batches up events from a channel. Batches are created whenever maxItems InstructionSets have been received or maxTimeout has elapsed since the last batch was created (whichever occurs first). This function has a lot in common with lookoutingester.batch. Hopefully when generics become available we can factor out most of the common code

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL