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"]],[["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 provides documentation for the `AsyncStreamAdapter\u003cT\u003e` class, a utility within the `Google.Api.Gax.Grpc.Testing` namespace, designed for .NET applications."],["`AsyncStreamAdapter\u003cT\u003e` allows an `IAsyncEnumerator\u003cT\u003e` to function as a gRPC `IAsyncStreamReader\u003cT\u003e`, facilitating the use of asynchronous enumerators in gRPC streaming."],["The class includes a constructor that accepts an `IAsyncEnumerator\u003cT\u003e` for wrapping, a `Current` property to access the current element, and a `MoveNext` method for asynchronous iteration."],["The documentation lists the available versions of the class, ranging from version 3.2.0 up to the latest release which is 4.10.0, as well as the inherited members and assembly information."],["The documentation also states that it's important to note that cancellation is not fully supported when using this class due to interface differences."]]],[]]