A stream of messages to be read.
Messages can be awaited await reader.MoveNext(), that returns true
if there is a message available and false if there are no more messages
(i.e. the stream has been closed).
On the client side, the last invocation of MoveNext() either returns false
if the call has finished successfully or throws RpcException if call finished
with an error. Once the call finishes, subsequent invocations of MoveNext() will
continue yielding the same result (returning false or throwing an exception).
On the server side, MoveNext() does not throw exceptions.
In case of a failure, the request stream will appear to be finished
(MoveNext will return false) and the CancellationToken
associated with the call will be cancelled to signal the failure.
MoveNext() operations can be cancelled via a cancellation token. Cancelling
an individual read operation has the same effect as cancelling the entire call
(which will also result in the read operation returning prematurely), but the per-read cancellation
tokens passed to MoveNext() only result in cancelling the call if the read operation haven't finished
yet.
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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eIAsyncStreamReader<T>\u003c/code\u003e is an interface for reading a stream of messages, where \u003ccode\u003eT\u003c/code\u003e represents the message type.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMoveNext()\u003c/code\u003e method is used to asynchronously advance the reader to the next message, returning \u003ccode\u003etrue\u003c/code\u003e if a message is available and \u003ccode\u003efalse\u003c/code\u003e if the stream is closed.\u003c/p\u003e\n"],["\u003cp\u003eOn the client side, the last \u003ccode\u003eMoveNext()\u003c/code\u003e either returns \u003ccode\u003efalse\u003c/code\u003e or throws an \u003ccode\u003eRpcException\u003c/code\u003e if an error occurs, while on the server side, \u003ccode\u003eMoveNext()\u003c/code\u003e does not throw exceptions, but returns \u003ccode\u003efalse\u003c/code\u003e on failure.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMoveNext()\u003c/code\u003e operations can be cancelled via a cancellation token, with cancellation of an individual read having the same effect as cancelling the entire call.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCurrent\u003c/code\u003e property gets the current element (message) in the stream, and it is of type \u003ccode\u003eT\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]