#include <userver/utils/hedged_request.hpp>
Future of hedged request.
Definition at line 309 of file hedged_request.hpp.
Public Types | |
using | RequestType = typename RequestTraits< RequestStrategy >::RequestType |
using | ReplyType = typename RequestTraits< RequestStrategy >::ReplyType |
Public Member Functions | |
HedgedRequestFuture (HedgedRequestFuture &&) noexcept=default | |
void | Wait () |
Wait for the request finish or for a caller task cancellation. | |
std::optional< ReplyType > | Get () |
Returns (or rethrows) the result of task invocation. After return from this method the task is not valid. | |
void | IgnoreResult () |
engine::impl::ContextAccessor * | TryGetContextAccessor () |
using utils::hedging::HedgedRequestFuture< RequestStrategy >::ReplyType = typename RequestTraits<RequestStrategy>::ReplyType |
Definition at line 311 of file hedged_request.hpp.
using utils::hedging::HedgedRequestFuture< RequestStrategy >::RequestType = typename RequestTraits<RequestStrategy>::RequestType |
Definition at line 310 of file hedged_request.hpp.
|
inline |
Definition at line 314 of file hedged_request.hpp.
|
inline |
Returns (or rethrows) the result of task invocation. After return from this method the task is not valid.
WaitInterruptedException | when current_task::IsCancelRequested() and no TaskCancellationBlockers are present. |
TaskCancelledException | if no result is available because the task was cancelled |
Definition at line 320 of file hedged_request.hpp.
|
inline |
Definition at line 322 of file hedged_request.hpp.
|
inline |
Definition at line 324 of file hedged_request.hpp.
|
inline |
Wait for the request finish or for a caller task cancellation.
Definition at line 317 of file hedged_request.hpp.