template<typename Response>
class ugrpc::client::InputStream< Response >
Controls a single request -> response stream RPC.
This class is not thread-safe except for GetContext
.
The RPC is cancelled on destruction unless the stream is closed (Read
has returned false
). In that case the connection is not closed (it will be reused for new RPCs), and the server receives RpcInterruptedError
immediately. gRPC provides no way to early-close a server-streaming RPC gracefully.
If any method throws, further methods must not be called on the same stream, except for GetContext
.
Definition at line 190 of file rpc.hpp.