Skip to content

amqpx v1.0.1


amqpx / index / BatchConsumerCallbackFn

Type Alias: BatchConsumerCallbackFn<Message, AdditionalProperties>

BatchConsumerCallbackFn<Message, AdditionalProperties> = (args) => MaybePromise<void>

Defined in: src/consumer/types.ts:78

Callback function type for a batch consumer handler. Receives a batch of messages along with their raw amqplib payloads and the channel.

Type Parameters

Type ParameterDefault type
Message-
AdditionalPropertiesRecord<string, unknown>

Parameters

ParameterType
argsBatchConsumerCallbackArgs<Message, AdditionalProperties>

Returns

MaybePromise<void>

Released under the MIT License.