UnaryFuture for waiting a single response RPC. More...
#include <userver/ugrpc/client/rpc.hpp>
Public Member Functions | |
| UnaryFuture (UnaryFuture &&) noexcept=default | |
| UnaryFuture & | operator= (UnaryFuture &&) noexcept |
| void | 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. | |
UnaryFuture for waiting a single response RPC.
| void ugrpc::client::UnaryFuture::Get | ( | ) |
Await response.
Upon completion result is available in response when initiating the asynchronous operation, e.g. FinishAsync.
Get should not be called multiple times for the same UnaryFuture.
| ugrpc::client::RpcError | on an RPC error |
| ugrpc::client::RpcCancelledError | on task cancellation |
|
noexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.