|
Apache Mesos
|
#include <future.hpp>
Public Types | |
| typedef lambda::CallableOnce < void()> | AbandonedCallback |
| typedef lambda::CallableOnce < void()> | DiscardCallback |
| typedef lambda::CallableOnce < void(const T &)> | ReadyCallback |
| typedef lambda::CallableOnce < void(const std::string &)> | FailedCallback |
| typedef lambda::CallableOnce < void()> | DiscardedCallback |
| typedef lambda::CallableOnce < void(const Future< T > &)> | AnyCallback |
Public Member Functions | |
| Future () | |
| Future (const T &_t) | |
| template<typename U > | |
| Future (const U &u) | |
| Future (const Failure &failure) | |
| Future (const ErrnoFailure &failure) | |
| Future (const Future< T > &that) | |
| Future (Future< T > &&that) | |
| Future (const Try< T > &t) | |
| Future (const Try< Future< T >> &t) | |
| ~Future ()=default | |
| Future< T > & | operator= (const Future< T > &that) |
| bool | operator== (const Future< T > &that) const |
| bool | operator!= (const Future< T > &that) const |
| bool | operator< (const Future< T > &that) const |
| bool | isPending () const |
| bool | isReady () const |
| bool | isDiscarded () const |
| bool | isFailed () const |
| bool | isAbandoned () const |
| bool | hasDiscard () const |
| bool | discard () |
| bool | await (const Duration &duration=Seconds(-1)) const |
| const T & | get () const |
| const T * | operator-> () const |
| const std::string & | failure () const |
| const Future< T > & | onAbandoned (AbandonedCallback &&callback) const |
| const Future< T > & | onDiscard (DiscardCallback &&callback) const |
| const Future< T > & | onReady (ReadyCallback &&callback) const |
| const Future< T > & | onFailed (FailedCallback &&callback) const |
| const Future< T > & | onDiscarded (DiscardedCallback &&callback) const |
| const Future< T > & | onAny (AnyCallback &&callback) const |
| template<typename F > | |
| const Future< T > & | onAbandoned (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onDiscard (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onReady (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onFailed (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onDiscarded (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onAny (_Deferred< F > &&deferred) const |
| template<typename F > | |
| const Future< T > & | onAbandoned (F &&f) const |
| template<typename F > | |
| const Future< T > & | onDiscard (F &&f) const |
| template<typename F > | |
| const Future< T > & | onReady (F &&f) const |
| template<typename F > | |
| const Future< T > & | onFailed (F &&f) const |
| template<typename F > | |
| const Future< T > & | onDiscarded (F &&f) const |
| template<typename F > | |
| const Future< T > & | onAny (F &&f) const |
| template<typename X > | |
| Future< X > | then (lambda::CallableOnce< Future< X >(const T &)> f) const |
| template<typename X > | |
| Future< X > | then (lambda::CallableOnce< X(const T &)> f) const |
| template<typename X > | |
| Future< X > | then (lambda::CallableOnce< Future< X >()> f) const |
| template<typename X > | |
| Future< X > | then (lambda::CallableOnce< X()> f) const |
| template<typename F > | |
| auto | then (F &&f) const -> decltype(this->then(std::forward< F >(f), Prefer())) |
| template<typename F > | |
| Future< T > | recover (F &&f) const |
| template<typename F > | |
| Future< T > | recover (_Deferred< F > &&deferred) const |
| Future< T > | repair (lambda::CallableOnce< Future< T >(const Future< T > &)> f) const |
| Future< T > | after (const Duration &duration, lambda::CallableOnce< Future< T >(const Future< T > &)> f) const |
Static Public Member Functions | |
| static Future< T > | failed (const std::string &message) |
Friends | |
| template<typename U > | |
| class | Future |
| class | Promise< T > |
| class | WeakFuture< T > |
| template<typename U > | |
| std::ostream & | operator<< (std::ostream &, const Future< U > &) |
| typedef lambda::CallableOnce<void()> process::Future< T >::AbandonedCallback |
| typedef lambda::CallableOnce<void(const Future<T>&)> process::Future< T >::AnyCallback |
| typedef lambda::CallableOnce<void()> process::Future< T >::DiscardCallback |
| typedef lambda::CallableOnce<void()> process::Future< T >::DiscardedCallback |
| typedef lambda::CallableOnce<void(const std::string&)> process::Future< T >::FailedCallback |
| typedef lambda::CallableOnce<void(const T&)> process::Future< T >::ReadyCallback |
| process::Future< T >::Future | ( | ) |
| process::Future< T >::Future | ( | const T & | _t | ) |
| process::Future< T >::Future | ( | const Failure & | failure | ) |
| process::Future< T >::Future | ( | const ErrnoFailure & | failure | ) |
| process::Future< T >::Future | ( | const Future< T > & | that | ) |
| process::Future< T >::Future | ( | Future< T > && | that | ) |
| process::Future< T >::Future | ( | const Try< T > & | t | ) |
| process::Future< T >::Future | ( | const Try< Future< T >> & | t | ) |
|
default |
| Future< T > process::Future< T >::after | ( | const Duration & | duration, |
| lambda::CallableOnce< Future< T >(const Future< T > &)> | f | ||
| ) | const |
| bool process::Future< T >::await | ( | const Duration & | duration = Seconds(-1) | ) | const |
| bool process::Future< T >::discard | ( | ) |
|
static |
| const std::string & process::Future< T >::failure | ( | ) | const |
| const T & process::Future< T >::get | ( | ) | const |
| bool process::Future< T >::hasDiscard | ( | ) | const |
| bool process::Future< T >::isAbandoned | ( | ) | const |
| bool process::Future< T >::isDiscarded | ( | ) | const |
| bool process::Future< T >::isFailed | ( | ) | const |
| bool process::Future< T >::isPending | ( | ) | const |
| bool process::Future< T >::isReady | ( | ) | const |
| const Future< T > & process::Future< T >::onAbandoned | ( | AbandonedCallback && | callback | ) | const |
|
inline |
|
inline |
| const Future< T > & process::Future< T >::onAny | ( | AnyCallback && | callback | ) | const |
|
inline |
|
inline |
| const Future< T > & process::Future< T >::onDiscard | ( | DiscardCallback && | callback | ) | const |
|
inline |
|
inline |
| const Future< T > & process::Future< T >::onDiscarded | ( | DiscardedCallback && | callback | ) | const |
|
inline |
|
inline |
| const Future< T > & process::Future< T >::onFailed | ( | FailedCallback && | callback | ) | const |
|
inline |
|
inline |
| const Future< T > & process::Future< T >::onReady | ( | ReadyCallback && | callback | ) | const |
|
inline |
|
inline |
| bool process::Future< T >::operator!= | ( | const Future< T > & | that | ) | const |
| const T * process::Future< T >::operator-> | ( | ) | const |
| bool process::Future< T >::operator< | ( | const Future< T > & | that | ) | const |
| Future< T > & process::Future< T >::operator= | ( | const Future< T > & | that | ) |
| bool process::Future< T >::operator== | ( | const Future< T > & | that | ) | const |
| Future< T > process::Future< T >::recover | ( | F && | f | ) | const |
|
inline |
| Future< T > process::Future< T >::repair | ( | lambda::CallableOnce< Future< T >(const Future< T > &)> | f | ) | const |
| Future< X > process::Future< T >::then | ( | lambda::CallableOnce< Future< X >(const T &)> | f | ) | const |
| Future< X > process::Future< T >::then | ( | lambda::CallableOnce< X(const T &)> | f | ) | const |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
1.8.5