Class AsyncStreamAdapter<T> (4.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
public sealed class AsyncStreamAdapter<T> : IAsyncStreamReader<T>
Simple adapter to allow an to be used as a gRPC .
Note that cancellation is not fully supported, due to differences between the two interfaces.
Inheritance
Object >
AsyncStreamAdapter<T>
Namespace
Google.Api.Gax.Grpc.Testing
Assembly
Google.Api.Gax.Grpc.Testing.dll
Type Parameter |
---|
Name | Description |
T | The element type.
|
Constructors
AsyncStreamAdapter(IAsyncEnumerator<T>)
public AsyncStreamAdapter(IAsyncEnumerator<T> enumerator)
Wraps the given async enumerator as an async stream reader.
Parameter |
---|
Name | Description |
enumerator | IAsyncEnumerator<T>
The enumerator to wrap
|
Properties
Current
public T Current { get; }
Property Value |
---|
Type | Description |
T | |
Methods
MoveNext(CancellationToken)
public async Task<bool> MoveNext(CancellationToken cancellationToken)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}