# Interface IAsyncStreamWriter&lt;T&gt; (2.66.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.66.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamWriter-1)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.IAsyncStreamWriter-1)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.IAsyncStreamWriter-1)

    public interface IAsyncStreamWriter<in T>

A writable stream of messages.

## Namespace

[Grpc.Core](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core)

## Assembly

Grpc.Core.Api.dll

| ## Type Parameter ||
|---|---|
| **Name** | **Description** |
| `T` | The message type. |

## Properties

### WriteOptions

    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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.WriteOptions` |   |

## Methods

### WriteAsync(T)

    Task WriteAsync(T message)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `message` | `T` The message to be written. Cannot be null. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` |   |