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

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

Detailed Description

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

StreamReadFuture for waiting a single read response from stream.

Definition at line 83 of file 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.
 

Constructor & Destructor Documentation

◆ StreamReadFuture()

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

Definition at line 423 of file rpc.hpp.

◆ ~StreamReadFuture()

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

Definition at line 428 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 453 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 473 of file rpc.hpp.

◆ operator=()

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

Definition at line 443 of file rpc.hpp.


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