Broadway.Message.put_batch_mode

You're seeing just the function put_batch_mode, go back to Broadway.Message module for more information.
Link to this function

put_batch_mode(message, mode)

View Source

Specs

put_batch_mode(message :: t(), mode :: :bulk | :flush) :: t()

Sets the batching mode for the message.

When the mode is :bulk, the batch that the message is in is delivered after the batch size or batch timeout is reached.

When the mode is :flush, the batch that the message is in is delivered immediately after processing. Note it doesn't mean the batch contains only a single element but rather that all messages received from the processor are delivered without waiting.

The default mode for messages is :bulk.