Class AsyncStreamReaderExtensions (2.63.0)

public static class AsyncStreamReaderExtensions

Extension methods for IAsyncStreamReader<T>.

Inheritance

object > AsyncStreamReaderExtensions

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Methods

MoveNext<T>(IAsyncStreamReader<T>)

public static Task<bool> MoveNext<T>(this IAsyncStreamReader<T> streamReader) where T : class

Advances the stream reader to the next element in the sequence, returning the result asynchronously.

Parameter
Name Description
streamReader IAsyncStreamReader

The stream reader.

Returns
Type Description
Taskbool

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.

Type Parameter
Name Description
T

The message type.