View Source Broadway.BatchInfo (Broadway v1.0.7)

A struct used to hold information about a generated batch.

An instance of this struct containing the related info will be passed to the Broadway.handle_batch/4 callback of the module implementing the Broadway behaviour.

See the documentation for %Broadway.BatchInfo{} for information on the fields.

Link to this section Summary

Types

t()

The type for a batch info struct.

Functions

The batch info struct.

Link to this section Types

@type t() :: %Broadway.BatchInfo{
  batch_key: term(),
  batcher: atom(),
  partition: non_neg_integer() | nil,
  size: pos_integer(),
  trigger: atom()
}

The type for a batch info struct.

Link to this section Functions

Link to this function

%Broadway.BatchInfo{}

View Source (struct)

The batch info struct.

The fields are: