userver: utils::hedging::HedgedRequestBulkFuture< RequestStrategy > Struct Template Reference
Loading...
Searching...
No Matches
utils::hedging::HedgedRequestBulkFuture< RequestStrategy > Struct Template Reference

#include <userver/utils/hedged_request.hpp>

Detailed Description

template<typename RequestStrategy>
struct utils::hedging::HedgedRequestBulkFuture< RequestStrategy >

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 ()
 

Member Typedef Documentation

◆ ReplyType

◆ RequestType

Constructor & Destructor Documentation

◆ ~HedgedRequestBulkFuture()

Member Function Documentation

◆ Get()

std::vector< std::optional< ReplyType > > utils::hedging::HedgedRequestBulkFuture< RequestStrategy >::Get ( )
inline

Returns (or rethrows) the result of task invocation. After return from this method the task is not valid.

Exceptions
WaitInterruptedExceptionwhen current_task::IsCancelRequested() and no TaskCancellationBlockers are present.
TaskCancelledExceptionif no result is available because the task was cancelled

Definition at line 295 of file hedged_request.hpp.

◆ TryGetContextAccessor()

engine::impl::ContextAccessor * utils::hedging::HedgedRequestBulkFuture< RequestStrategy >::TryGetContextAccessor ( )
inline

Definition at line 297 of file hedged_request.hpp.

◆ Wait()

Wait for the request finish or for a caller task cancellation.

Definition at line 292 of file hedged_request.hpp.


The documentation for this struct was generated from the following file: