Skip to content

IJournalStorage.AppendAsync(ReadOnlySequence<byte>, CancellationToken)

AppendAsync(ReadOnlySequence<byte>, CancellationToken)

abstract
public abstract ValueTask AppendAsync(ReadOnlySequence<byte> value, CancellationToken cancellationToken)
Appends the provided segment to the journal atomically.

Parameters

valueReadOnlySequence<byte>
The encoded journal bytes to append. 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.