CatapultServer  v0.5.0.1 (Elephant)
FutureUtils.h File Reference
Include dependency graph for FutureUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::thread
 

Macros

#define INNER_STRUCT_VISIBILILTY
 

Functions

template<typename T >
future< std::vector< future< T > > > catapult::thread::when_all (std::vector< future< T >> &&allFutures)
 Returns a future that is signaled when all futures in allFutures complete. More...
 
template<typename T >
future< std::vector< future< T > > > catapult::thread::when_all (future< T > &&future1, future< T > &&future2)
 Returns a future that is signaled when both future1 and future2 complete. More...
 
template<typename TSeed , typename TCreateNextFuture , typename TResultFuture = std::invoke_result_t<TCreateNextFuture, future<TSeed>&&>, typename TResultType = decltype(TResultFuture().get())>
auto catapult::thread::compose (future< TSeed > &&startFuture, TCreateNextFuture createNextFuture)
 
template<typename T >
std::vector< T > catapult::thread::get_all_ignore_exceptional (std::vector< future< T >> &&futures)
 
template<typename T >
std::vector< T > catapult::thread::get_all (std::vector< future< T >> &&futures)
 

Macro Definition Documentation

◆ INNER_STRUCT_VISIBILILTY

#define INNER_STRUCT_VISIBILILTY