public sealed class AsyncStreamAdapter<T> : IAsyncStreamReader<T>
Simple adapter to allow an IAsyncEnumerator<T> to be used as a gRPC IAsyncStreamReader<T>.
Note that cancellation is not fully supported, due to differences between the two interfaces.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `AsyncStreamAdapter\u003cT\u003e` class, a utility for converting an `IAsyncEnumerator\u003cT\u003e` into a gRPC `IAsyncStreamReader\u003cT\u003e`."],["The `AsyncStreamAdapter\u003cT\u003e` class is a sealed class that implements the `IAsyncStreamReader` interface and inherits from `object`."],["The class provides a constructor `AsyncStreamAdapter(IAsyncEnumerator\u003cT\u003e)` for wrapping an async enumerator."],["Key methods include `MoveNext(CancellationToken)` for asynchronous iteration, and the property `Current` to retrieve the current element, where `T` represents the element type."],["While it provides conversion, it's important to note that the adapter does not fully support cancellation due to differences in the two interfaces it bridges."]]],[]]