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

#include <userver/utils/hedged_request.hpp>

Detailed Description

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

Future of hedged request.

Definition at line 305 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 ()
 
std::optional< ReplyType > Get ()
 
void IgnoreResult ()
 
engine::impl::ContextAccessor * TryGetContextAccessor ()
 

Member Typedef Documentation

◆ ReplyType

◆ RequestType

Constructor & Destructor Documentation

◆ ~HedgedRequestFuture()

Member Function Documentation

◆ Get()

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

Definition at line 313 of file hedged_request.hpp.

◆ IgnoreResult()

Definition at line 314 of file hedged_request.hpp.

◆ TryGetContextAccessor()

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

Definition at line 315 of file hedged_request.hpp.

◆ Wait()

Definition at line 312 of file hedged_request.hpp.


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