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 335 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 343 of file hedged_request.hpp.

◆ IgnoreResult()

Definition at line 344 of file hedged_request.hpp.

◆ TryGetContextAccessor()

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

Definition at line 345 of file hedged_request.hpp.

◆ Wait()

Definition at line 342 of file hedged_request.hpp.


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