Table of Contents

Method WriteAsync

Namespace
AvroSharp.Streams
Assembly
AvroSharp.dll

WriteAsync(T, CancellationToken)

Appends one object; once the buffer is full, it is written to the stream asynchronously.

public ValueTask WriteAsync(T value, CancellationToken cancellationToken = default)

Parameters

value T

The object.

cancellationToken CancellationToken

Cancels writing the buffer.

Returns

ValueTask

Remarks

If encoding the object throws, nothing of it is kept and the writer stays usable.