StreamReadFuture for waiting a single read response from stream. More...
#include <userver/ugrpc/client/rpc.hpp>
Public Member Functions | |
| StreamReadFuture (StreamReadFuture &&other) noexcept=default | |
| StreamReadFuture & | operator= (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. | |
StreamReadFuture for waiting a single read response from stream.
|
defaultnoexcept |
|
noexcept |
| 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.
| ugrpc::client::RpcError | on an RPC error |
| ugrpc::client::RpcCancelledError | on task cancellation |
|
noexcept |
|
noexcept |