#include <userver/utils/hedged_request.hpp>
Future of hedged bulk request.
Definition at line 284 of file hedged_request.hpp.
Public Types | |
using | RequestType = typename RequestTraits< RequestStrategy >::RequestType |
using | ReplyType = typename RequestTraits< RequestStrategy >::ReplyType |
Public Member Functions | |
HedgedRequestBulkFuture (HedgedRequestBulkFuture &&) noexcept=default | |
void | Wait () |
Wait for the request finish or for a caller task cancellation. | |
std::vector< std::optional< ReplyType > > | Get () |
Returns (or rethrows) the result of task invocation. After return from this method the task is not valid. | |
engine::impl::ContextAccessor * | TryGetContextAccessor () |
using utils::hedging::HedgedRequestBulkFuture< RequestStrategy >::ReplyType = typename RequestTraits<RequestStrategy>::ReplyType |
Definition at line 286 of file hedged_request.hpp.
using utils::hedging::HedgedRequestBulkFuture< RequestStrategy >::RequestType = typename RequestTraits<RequestStrategy>::RequestType |
Definition at line 285 of file hedged_request.hpp.
|
inline |
Definition at line 289 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 295 of file hedged_request.hpp.
|
inline |
Definition at line 297 of file hedged_request.hpp.
|
inline |
Wait for the request finish or for a caller task cancellation.
Definition at line 292 of file hedged_request.hpp.