<PackageReference Include="Grpc.Core.Api" Version="2.76.0" />

Grpc.Core.IAsyncStreamWriter<T>

public interface IAsyncStreamWriter<T>
A writable stream of messages.
WriteOptions WriteOptions { get; set; }

Write options that will be used for the next write. If null, default options will be used. Once set, this property maintains its value across subsequent writes.

Task WriteAsync(T message)

Writes a message asynchronously. Only one write can be pending at a time.

Task WriteAsync(T message, CancellationToken cancellationToken)

Writes a message asynchronously. Only one write can be pending at a time.