ReplaceAsync(ReadOnlySequence<byte>, CancellationToken)
abstract
public abstract ValueTask ReplaceAsync(ReadOnlySequence<byte> value, CancellationToken cancellationToken) Replaces the journal with the provided value atomically.
Parameters
valueReadOnlySequence<byte>- The encoded journal bytes to write. The storage provider must not retain this buffer after the returned task completes.
cancellationTokenCancellationToken- The cancellation token.
Returns
A
System.Threading.Tasks.ValueTask representing the operation.