Your opinion will help to improve our service
Leave a feedback >#include <userver/ugrpc/client/stream_read_future.hpp>
StreamReadFuture for waiting a single read response from stream.
Definition at line 22 of file stream_read_future.hpp.
Public Member Functions | |
StreamReadFuture (StreamReadFuture &&other) noexcept | |
StreamReadFuture & | operator= (StreamReadFuture &&other) noexcept |
StreamReadFuture (const StreamReadFuture &)=delete | |
StreamReadFuture & | operator= (const StreamReadFuture &)=delete |
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. | |
|
noexcept |
Definition at line 70 of file stream_read_future.hpp.
ugrpc::client::StreamReadFuture< RawStream >::~StreamReadFuture | ( | ) |
Definition at line 86 of file stream_read_future.hpp.
bool ugrpc::client::StreamReadFuture< RawStream >::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.
ugrpc::client::RpcError | on an RPC error |
ugrpc::client::RpcCancelledError | on task cancellation |
Definition at line 94 of file stream_read_future.hpp.
|
noexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.
Definition at line 115 of file stream_read_future.hpp.
|
noexcept |
Definition at line 75 of file stream_read_future.hpp.