userver: ugrpc::client::StreamReadFuture< RPC > Class Template Reference
Loading...
Searching...
No Matches
ugrpc::client::StreamReadFuture< RPC > Class Template Reference

StreamReadFuture for waiting a single read response from stream. More...

#include <userver/ugrpc/client/rpc.hpp>

Public Member Functions

 StreamReadFuture (StreamReadFuture &&other) noexcept=default
 
StreamReadFutureoperator= (StreamReadFuture &&other) noexcept
 
bool Get ()
 Await response.
 
bool IsReady () const noexcept
 Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.
 

Detailed Description

template<typename RPC>
class ugrpc::client::StreamReadFuture< RPC >

StreamReadFuture for waiting a single read response from stream.

Definition at line 64 of file rpc.hpp.

Constructor & Destructor Documentation

◆ StreamReadFuture()

template<typename RPC >
ugrpc::client::StreamReadFuture< RPC >::StreamReadFuture ( StreamReadFuture< RPC > &&  other)
defaultnoexcept

Definition at line 401 of file rpc.hpp.

◆ ~StreamReadFuture()

template<typename RPC >
ugrpc::client::StreamReadFuture< RPC >::~StreamReadFuture ( )
noexcept

Definition at line 406 of file rpc.hpp.

Member Function Documentation

◆ Get()

template<typename RPC >
bool ugrpc::client::StreamReadFuture< RPC >::Get ( )

Await response.

Upon completion the result is available in response that was specified when initiating the asynchronous read

Get should not be called multiple times for the same StreamReadFuture.

Exceptions
ugrpc::client::RpcErroron an RPC error
ugrpc::client::RpcCancelledErroron task cancellation

Definition at line 431 of file rpc.hpp.

◆ IsReady()

template<typename RPC >
bool ugrpc::client::StreamReadFuture< RPC >::IsReady ( ) const
noexcept

Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.

Returns
true if result ready

Definition at line 451 of file rpc.hpp.

◆ operator=()

template<typename RPC >
StreamReadFuture< RPC > & ugrpc::client::StreamReadFuture< RPC >::operator= ( StreamReadFuture< RPC > &&  other)
noexcept

Definition at line 421 of file rpc.hpp.


The documentation for this class was generated from the following file: