#include <userver/ugrpc/client/stream_read_future.hpp>
StreamReadFuture for waiting a single read response from stream.
Definition at line 17 of file stream_read_future.hpp.
Public Member Functions | |
| StreamReadFuture (StreamReadFuture &&) noexcept=default | |
| StreamReadFuture & | operator= (StreamReadFuture &&) noexcept=default |
| bool | IsReady () const |
| Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called. | |
| bool | Get () |
| Await response. | |
|
inline |
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 36 of file stream_read_future.hpp.
|
inlinenodiscard |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.
Definition at line 25 of file stream_read_future.hpp.