libkazv
Kazv::AsioPromise< Exec, T > Class Template Reference

#include <asio-promise-handler.hpp>

Public Member Functions

 AsioPromise (Exec executor, T value)
 
template<class Func >
 AsioPromise (Exec executor, Func &&callback)
 
template<class FuncT >
auto then (FuncT &&func) -> AsioPromise< Exec, PromiseThenResult< FuncT, typename BaseT::DataT >>
 
bool ready () const
 
get () const
 

Constructor & Destructor Documentation

◆ AsioPromise() [1/2]

template<class Exec , class T >
Kazv::AsioPromise< Exec, T >::AsioPromise ( Exec  executor,
value 
)
inline

◆ AsioPromise() [2/2]

template<class Exec , class T >
template<class Func >
Kazv::AsioPromise< Exec, T >::AsioPromise ( Exec  executor,
Func &&  callback 
)
inline

Member Function Documentation

◆ get()

template<class Exec , class T >
T Kazv::AsioPromise< Exec, T >::get ( ) const
inline

◆ ready()

template<class Exec , class T >
bool Kazv::AsioPromise< Exec, T >::ready ( ) const
inline

◆ then()

template<class Exec , class T >
template<class FuncT >
auto Kazv::AsioPromise< Exec, T >::then ( FuncT &&  func) -> AsioPromise<Exec, PromiseThenResult<FuncT, typename BaseT::DataT>>
inline

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