Skip to content

VolatileJournalStorage.AppendAsync(ReadOnlySequence<byte>, CancellationToken)

AppendAsync(ReadOnlySequence<byte>, CancellationToken)

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

Parameters

segmentReadOnlySequence<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.