#include <userver/utils/hedged_request.hpp>
Future of hedged request.
Definition at line 323 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::AwaitableToken | GetAwaitableToken () |
| Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends. | |
| using utils::hedging::HedgedRequestFuture< RequestStrategy >::ReplyType = typename RequestTraits<RequestStrategy>::ReplyType |
Definition at line 325 of file hedged_request.hpp.
| using utils::hedging::HedgedRequestFuture< RequestStrategy >::RequestType = typename RequestTraits<RequestStrategy>::RequestType |
Definition at line 324 of file hedged_request.hpp.
|
inline |
Definition at line 328 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 334 of file hedged_request.hpp.
|
inline |
Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends.
Definition at line 339 of file hedged_request.hpp.
|
inline |
Definition at line 336 of file hedged_request.hpp.
|
inline |
Wait for the request finish or for a caller task cancellation.
Definition at line 331 of file hedged_request.hpp.