Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::async::Outcome< RetType > Class Template Reference

Unstoppable outcome. More...

#include <Outcome.hpp>

Inheritance diagram for util::async::Outcome< RetType >:
Collaboration diagram for util::async::Outcome< RetType >:

Public Member Functions

impl::BasicOperation< OutcomegetOperation ()
 Gets the unstoppable operation for this outcome.
 
- Public Member Functions inherited from util::async::impl::BasicOutcome< RetType >
 BasicOutcome (BasicOutcome &&)=default
 
 BasicOutcome (BasicOutcome const &)=delete
 
void setValue (std::convertible_to< RetType > auto &&val)
 Sets the value on the inner promise
 
void setValue ()
 Sets the value channel for void operations.
 
std::future< RetType > getStdFuture ()
 Get the future for the inner promise
 

Additional Inherited Members

- Public Types inherited from util::async::impl::BasicOutcome< RetType >
using DataType = RetType
 
- Protected Attributes inherited from util::async::impl::BasicOutcome< RetType >
std::promise< RetType > promise_
 

Detailed Description

template<typename RetType>
class util::async::Outcome< RetType >

Unstoppable outcome.

Template Parameters
RetTypeThe return type of the operation.

Member Function Documentation

◆ getOperation()

template<typename RetType >
impl::BasicOperation< Outcome > util::async::Outcome< RetType >::getOperation ( )
inlinenodiscard

Gets the unstoppable operation for this outcome.

Returns
An unstoppable operation for this outcome

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