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

#include <shared_future.hpp>

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

Public Member Functions

 SharedFuture (detail::SharedCorePtr< V, E > core) noexcept
 
template<typename Func >
auto ThenInline (Func &&f) const
 
- Public Member Functions inherited from yaclib::SharedFutureBase< V, E >
 SharedFutureBase ()=default
 
bool Valid () const noexcept
 
bool Ready () const noexcept
 
Result< V, EGet () &&noexcept
 
void Get () const &&=delete
 
const Result< V, E > & Get () const &noexcept
 
Result< V, ETouch () &&noexcept
 
void Touch () const &&=delete
 
const Result< V, E > & Touch () 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, E > & GetCore () noexcept
 
const detail::SharedCorePtr< V, E > & GetCore () const noexcept
 
detail::SharedHandle GetHandle () const noexcept
 

Additional Inherited Members

- Public Types inherited from yaclib::SharedFutureBase< V, E >
using Handle = detail::SharedHandle
 
- Protected Member Functions inherited from yaclib::SharedFutureBase< V, E >
 SharedFutureBase (detail::SharedCorePtr< V, E > core) noexcept
 
- Protected Attributes inherited from yaclib::SharedFutureBase< V, E >
detail::SharedCorePtr< V, E_core
 

Detailed Description

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

Definition at line 120 of file shared_future.hpp.

Constructor & Destructor Documentation

◆ SharedFuture()

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

Definition at line 127 of file shared_future.hpp.

Member Function Documentation

◆ ThenInline()

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

Definition at line 131 of file shared_future.hpp.

References yaclib::MakeContract().


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