YACLib
C++ library for concurrent tasks execution
|
#include <promise.hpp>
Public Member Functions | |
Promise (const Promise &other)=delete | |
Promise & | operator= (const Promise &other)=delete |
Promise (Promise &&other) noexcept=default | |
Promise & | operator= (Promise &&other) noexcept=default |
Promise () noexcept=default | |
The default constructor creates not a Valid Promise. | |
~Promise () noexcept | |
If Promise is Valid then set StopTag. | |
bool | Valid () const &noexcept |
Check if this Promise has Future. | |
template<typename... Args> | |
void | Set (Args &&... args) && |
Set Promise result. | |
Promise (detail::ResultCorePtr< V, E > core) noexcept | |
Part of unsafe but internal API. | |
detail::ResultCorePtr< V, E > & | GetCore () noexcept |
Definition at line 10 of file promise.hpp.
|
delete |
|
defaultnoexcept |
|
defaultnoexcept |
If Promise is Valid then set StopTag.
Definition at line 32 of file promise.hpp.
References yaclib::MakeContract(), yaclib::Promise< V, E >::Set(), and yaclib::Promise< V, E >::Valid().
|
inlineexplicitnoexcept |
Part of unsafe but internal API.
Definition at line 68 of file promise.hpp.
References yaclib::MakeContract().
|
inlinenoexcept |
Definition at line 71 of file promise.hpp.
|
delete |
|
defaultnoexcept |
|
inline |
Set Promise result.
Args | Result<T> should be constructable from this types |
args | arguments |
Definition at line 54 of file promise.hpp.
References yaclib::detail::Loop(), yaclib::MakeContract(), yaclib::Promise< V, E >::Valid(), and YACLIB_ASSERT.
Referenced by yaclib::Promise< V, E >::~Promise().
Check if this Promise has Future.
Definition at line 43 of file promise.hpp.
Referenced by yaclib::Promise< V, E >::Set(), and yaclib::Promise< V, E >::~Promise().