method EventBatch.commit
EventBatch.commit(): Promise<void>

Commit this batch's cursor to mark progress.

After processing events successfully, call this to save the cursor position. On restart, the consumer will resume from this position.

Return Type

Promise<void>

Usage

import { type EventBatch } from ".";