Skip to content

IStreamQueueCheckpointer<TCheckpoint>.FlushAsync(CancellationToken)

FlushAsync(CancellationToken)

virtual
View source
public virtual Task FlushAsync(CancellationToken cancellationToken)
Flushes any pending checkpoint to persistent storage, ensuring the latest offset is durably saved. Called during shutdown or rebalancing to prevent message replay on restart.

Parameters

cancellationTokenCancellationToken
The cancellation token.

Returns

A System.Threading.Tasks.Task representing the flush operation.