# VolatileJournalStorage.AppendAsync(ReadOnlySequence&lt;byte&gt;, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.volatilejournalstorage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.volatilejournalstorage/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Journaling/VolatileJournalStorage.cs#L235-L244)

```csharp
public ValueTask AppendAsync(ReadOnlySequence<byte> segment, CancellationToken cancellationToken)
```

Appends the provided segment to the journal atomically.

### Parameters

- `segment` (`ReadOnlySequence<byte>`): The encoded journal bytes to append. The storage provider must not retain this buffer after the returned task completes.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

A `System.Threading.Tasks.ValueTask` representing the operation.
