共用方式為


ProcessEventsHandler type

收到一組事件時,由 EventHubConsumerClient 所叫用之使用者提供的函式簽章。

type ProcessEventsHandler = (
  events: ReceivedEventData[],
  context: PartitionContext
) => Promise<void>