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

#include <asio-promise-handler.hpp>

Inheritance diagram for Kazv::AsioPromise< Exec, T >:
Collaboration diagram for Kazv::AsioPromise< Exec, T >:

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
 
- Public Member Functions inherited from Kazv::AbstractPromise< detail::AsioPromiseHelper< Exec >::template PromiseType, T >
 AbstractPromise (detail::AsioPromiseHelper< Exec >::template PromiseType< T > *obj)
 
auto then (FuncT &&func) -> detail::AsioPromiseHelper< Exec >::template PromiseType< PromiseThenResult< FuncT, DataT >>
 

Additional Inherited Members

- Public Types inherited from Kazv::AbstractPromise< detail::AsioPromiseHelper< Exec >::template PromiseType, T >
using DataT = T
 

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: