YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::SharedFuture< V, T > Class Template Referencefinal

#include <shared_future.hpp>

Inheritance diagram for yaclib::SharedFuture< V, T >:
[legend]
Collaboration diagram for yaclib::SharedFuture< V, T >:
[legend]

Public Member Functions

 SharedFuture (detail::SharedCorePtr< V, T > core) noexcept
 
template<typename Func >
auto ThenInline (Func &&f) const
 
- Public Member Functions inherited from yaclib::SharedFutureBase< V, T >
 SharedFutureBase ()=default
 
bool Valid () const noexcept
 
bool Ready () const noexcept
 
Result Get () &&noexcept
 
void Get () const &&=delete
 
const ResultGet () const &noexcept
 
Result Touch () &&noexcept
 
void Touch () const &&=delete
 
const ResultTouch () const &noexcept
 
template<typename Func >
auto Then (IExecutor &e, Func &&f) const
 
void Detach () &&noexcept
 
template<typename Func >
void SubscribeInline (Func &&f) const
 
template<typename Func >
void Subscribe (IExecutor &e, Func &&f) const
 
detail::SharedCorePtr< V, T > & GetCore () noexcept
 
const detail::SharedCorePtr< V, T > & GetCore () const noexcept
 
detail::SharedHandle GetHandle () const noexcept
 

Additional Inherited Members

- Public Types inherited from yaclib::SharedFutureBase< V, T >
using Result = typename T::template Result< V >
 
using Handle = detail::SharedHandle
 
using Core = detail::SharedCore< V, T >
 
- Protected Member Functions inherited from yaclib::SharedFutureBase< V, T >
 SharedFutureBase (detail::SharedCorePtr< V, T > core) noexcept
 
- Protected Attributes inherited from yaclib::SharedFutureBase< V, T >
detail::SharedCorePtr< V, T > _core
 

Detailed Description

template<typename V, typename T>
class yaclib::SharedFuture< V, T >

Definition at line 123 of file shared_future.hpp.

Constructor & Destructor Documentation

◆ SharedFuture()

template<typename V , typename T >
yaclib::SharedFuture< V, T >::SharedFuture ( detail::SharedCorePtr< V, T >  core)
inlinenoexcept

Definition at line 130 of file shared_future.hpp.

Member Function Documentation

◆ ThenInline()

template<typename V , typename T >
template<typename Func >
auto yaclib::SharedFuture< V, T >::ThenInline ( Func &&  f) const
inline

Definition at line 134 of file shared_future.hpp.

References yaclib::MakeContract().


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