Inherits dispenso::detail::FutureBase< Result & >.
|
| Future (Future &&f) noexcept |
|
| Future (Base &&f) noexcept |
|
| Future (const Future &f) noexcept |
|
| Future (const Base &f) noexcept |
|
template<typename F , typename Schedulable > |
| Future (F &&f, Schedulable &schedulable, std::launch asyncPolicy=kNotAsync, std::launch deferredPolicy=std::launch::deferred) |
|
Future & | operator= (Future &&f) noexcept |
|
Future & | operator= (const Future &f) |
|
Future | share () |
|
Result & | get () const |
|
template<typename F , typename Schedulable > |
Future< detail::ResultOf< F, Future< Result & > && > > | then (F &&f, Schedulable &sched, std::launch asyncPolicy=kNotAsync, std::launch deferredPolicy=std::launch::deferred) |
|
template<typename F > |
Future< detail::ResultOf< F, Future< Result & > && > > | then (F &&f) |
|
template<typename Result>
class dispenso::Future< Result & >
Definition at line 268 of file future.h.
◆ Future() [1/6]
template<typename Result >
◆ Future() [2/6]
template<typename Result >
◆ Future() [3/6]
template<typename Result >
◆ Future() [4/6]
template<typename Result >
◆ Future() [5/6]
template<typename Result >
◆ Future() [6/6]
template<typename Result >
template<typename F , typename Schedulable >
dispenso::Future< Result & >::Future |
( |
F && | f, |
|
|
Schedulable & | schedulable, |
|
|
std::launch | asyncPolicy = kNotAsync, |
|
|
std::launch | deferredPolicy = std::launch::deferred ) |
|
inline |
◆ get()
template<typename Result >
Get the result of the future functor. This function blocks until the result is ready.
- Returns
- Access to the underlying reference.
Definition at line 308 of file future.h.
◆ operator=() [1/2]
template<typename Result >
◆ operator=() [2/2]
template<typename Result >
◆ share()
template<typename Result >
◆ then() [1/2]
template<typename Result >
template<typename F >
◆ then() [2/2]
template<typename Result >
template<typename F , typename Schedulable >
Future< detail::ResultOf< F, Future< Result & > && > > dispenso::Future< Result & >::then |
( |
F && | f, |
|
|
Schedulable & | sched, |
|
|
std::launch | asyncPolicy = kNotAsync, |
|
|
std::launch | deferredPolicy = std::launch::deferred ) |
|
inline |
◆ Future
template<typename Result >
template<typename R >
◆ make_ready_future
template<typename Result >
template<typename X >
Future< X & > make_ready_future |
( |
std::reference_wrapper< X > | x | ) |
|
|
friend |
Make a Future
in a ready state with the reference_wrapper
passed into make_ready_future
- Parameters
-
x | the wrapped reference to use to create the returned future. |
Definition at line 587 of file future.h.
The documentation for this class was generated from the following file: