libkazv
|
#include <promise-interface.hpp>
Public Types | |
using | DataT = T |
using | PromiseT = SingleTypePromise< DataT > |
using | ResolveT = std::function< void(DataT)> |
using | ResolveToPromiseT = std::function< void(PromiseT)> |
Public Member Functions | |
template<class DeriveT > | |
SingleTypePromiseInterface (DeriveT obj) | |
SingleTypePromiseInterface (const SingleTypePromiseInterface &that) | |
SingleTypePromiseInterface (SingleTypePromiseInterface &&that) | |
SingleTypePromiseInterface & | operator= (const SingleTypePromiseInterface &that) |
SingleTypePromiseInterface & | operator= (SingleTypePromiseInterface &&that) |
PromiseT | create (std::function< void(ResolveT)> f) const |
PromiseT | createResolveToPromise (std::function< void(ResolveToPromiseT)> f) const |
PromiseT | createResolved (DataT v) const |
template<class RangeT > | |
PromiseT | all (RangeT promises) const |
using Kazv::SingleTypePromiseInterface< T >::DataT = T |
using Kazv::SingleTypePromiseInterface< T >::PromiseT = SingleTypePromise<DataT> |
using Kazv::SingleTypePromiseInterface< T >::ResolveT = std::function<void(DataT)> |
using Kazv::SingleTypePromiseInterface< T >::ResolveToPromiseT = std::function<void(PromiseT)> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |