Definition at line 13 of file response_future.hpp.
Public Member Functions | |
bool | IsReady () const noexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called. | |
engine::FutureStatus | WaitUntil (engine::Deadline deadline) const |
Await response until specified timepoint. | |
Response | Get () |
Await and read the response. | |
CallAnyBase & | GetCall () |
Get original gRPC Call. | |
Response ugrpc::client::ResponseFuture< Response >::Get | ( | ) |
Await and read the response.
Get
should not be called multiple times for the same UnaryFuture.
The connection is not closed, it will be reused for new RPCs.
ugrpc::client::RpcError | on an RPC error |
ugrpc::client::RpcCancelledError | on task cancellation |
Definition at line 70 of file response_future.hpp.
CallAnyBase & ugrpc::client::ResponseFuture< Response >::GetCall | ( | ) |
Get original gRPC Call.
Definition at line 76 of file response_future.hpp.
|
noexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.
Definition at line 60 of file response_future.hpp.
engine::FutureStatus ugrpc::client::ResponseFuture< Response >::WaitUntil | ( | engine::Deadline | deadline | ) | const |
Await response until specified timepoint.
ugrpc::client::RpcError | on an RPC error |
Definition at line 65 of file response_future.hpp.