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.
Task containing the result of the operation: true if the reader was successfully advanced
to the next element; false if the reader has passed the end of the sequence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The latest version of `AsyncStreamAdapter` is 4.10.0, with multiple earlier versions available, going back to version 3.2.0."],["`AsyncStreamAdapter\u003cT\u003e` is a class that adapts an `IAsyncEnumerator\u003cT\u003e` to function as a gRPC `IAsyncStreamReader\u003cT\u003e`, enabling their interoperability."],["The class includes a constructor that wraps an `IAsyncEnumerator\u003cT\u003e` to be used as an async stream reader."],["The `MoveNext` method advances the reader asynchronously to the next element, using a `CancellationToken` for optional cancellation, and returns `true` if successful, or `false` if it reaches the end of the sequence."],["The `Current` property is a getter for the current item in the stream, of type `T`."]]],[]]