# IAsyncBatchObserver&lt;T&gt;

Package: [Microsoft.Orleans.Streaming](/orleans/docs/api/csharp/microsoft.orleans.streaming/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Core/IAsyncBatchObserver.cs#L48)

```csharp
public interface IAsyncBatchObserver<T>
```

This interface generalizes the IAsyncObserver interface to allow production and consumption of batches of items. 

Note that this interface is implemented by item consumers and invoked (used) by item producers. This means that the consumer endpoint of a stream implements this interface.

## Type parameters

- `T`: The type of object consumed by the observer.

## Methods

- [OnCompletedAsync](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iasyncbatchobserver-1/methods/oncompletedasync-345231c8/)
- [OnErrorAsync(Exception)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iasyncbatchobserver-1/methods/onerrorasync-system-exception-d24fc920/)
- [OnNextAsync(IList&lt;SequentialItem&lt;T&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iasyncbatchobserver-1/methods/onnextasync-system-collections-generic-ilist-orleans-streams-sequentialitem-t-2886c842/)
