YACLib
C++ library for concurrent tasks execution
|
#include <shared_future.hpp>
Public Member Functions | |
SharedFuture ()=default | |
bool | Valid () const &noexcept |
Result< V, E > | Get () const |
Future< V, E > | GetFuture () const |
FutureOn< V, E > | GetFutureOn (IExecutor &e) const |
void | Attach (Promise< V, E > &&p) const |
SharedFuture (detail::SharedCorePtr< V, E > core) noexcept | |
Part of unsafe but internal API. | |
Definition at line 8 of file shared_future.hpp.
|
default |
|
inlineexplicitnoexcept |
Part of unsafe but internal API.
Definition at line 48 of file shared_future.hpp.
|
inline |
Definition at line 40 of file shared_future.hpp.
References yaclib::MakeContract(), yaclib::SharedFuture< V, E >::Valid(), and YACLIB_ASSERT.
|
inline |
Definition at line 21 of file shared_future.hpp.
References yaclib::SharedFuture< V, E >::GetFuture(), yaclib::SharedFuture< V, E >::Valid(), and YACLIB_ASSERT.
|
inline |
Definition at line 26 of file shared_future.hpp.
References yaclib::MakeContract(), yaclib::SharedFuture< V, E >::Valid(), and YACLIB_ASSERT.
Referenced by yaclib::SharedFuture< V, E >::Get().
|
inline |
Definition at line 33 of file shared_future.hpp.
References yaclib::MakeContract(), yaclib::SharedFuture< V, E >::Valid(), and YACLIB_ASSERT.
|
inlinenoexcept |
Definition at line 17 of file shared_future.hpp.
Referenced by yaclib::SharedFuture< V, E >::Attach(), yaclib::SharedFuture< V, E >::Get(), yaclib::SharedFuture< V, E >::GetFuture(), and yaclib::SharedFuture< V, E >::GetFutureOn().