dispenso
A library for task parallelism
 
Loading...
Searching...
No Matches
dispenso::Future< void > Class Reference

Inherits dispenso::detail::FutureBase< void >.

Public Member Functions

 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)
 
Futureoperator= (Future &&f) noexcept
 
Futureoperator= (const Future &f)
 
Future share ()
 
void get () const
 
template<typename F , typename Schedulable >
Future< detail::ResultOf< F, Future< void > && > > then (F &&f, Schedulable &sched, std::launch asyncPolicy=kNotAsync, std::launch deferredPolicy=std::launch::deferred)
 
template<typename F >
Future< detail::ResultOf< F, Future< void > && > > then (F &&f)
 

Friends

Future< voidmake_ready_future ()
 

Detailed Description

Definition at line 343 of file future.h.

Constructor & Destructor Documentation

◆ Future() [1/6]

dispenso::Future< void >::Future ( )
inlinenoexcept

Definition at line 347 of file future.h.

◆ Future() [2/6]

dispenso::Future< void >::Future ( Future< void > &&  f)
inlinenoexcept

Definition at line 348 of file future.h.

◆ Future() [3/6]

dispenso::Future< void >::Future ( Base &&  f)
inlinenoexcept

Definition at line 349 of file future.h.

◆ Future() [4/6]

dispenso::Future< void >::Future ( const Future< void > &  f)
inlinenoexcept

Definition at line 350 of file future.h.

◆ Future() [5/6]

dispenso::Future< void >::Future ( const Base &  f)
inlinenoexcept

Definition at line 351 of file future.h.

◆ Future() [6/6]

dispenso::Future< void >::Future ( F &&  f,
Schedulable schedulable,
std::launch  asyncPolicy = kNotAsync,
std::launch  deferredPolicy = std::launch::deferred 
)
inline

Definition at line 353 of file future.h.

Member Function Documentation

◆ get()

void dispenso::Future< void >::get ( ) const
inline

Block until the functor has been called.

Definition at line 381 of file future.h.

◆ operator=() [1/2]

Definition at line 363 of file future.h.

◆ operator=() [2/2]

Future & dispenso::Future< void >::operator= ( Future< void > &&  f)
inlinenoexcept

Definition at line 359 of file future.h.

◆ share()

Future dispenso::Future< void >::share ( )
inline

Definition at line 374 of file future.h.

◆ then() [1/2]

template<typename F >
Future< detail::ResultOf< F, Future< void > && > > dispenso::Future< void >::then ( F &&  f)
inline

Definition at line 398 of file future.h.

◆ then() [2/2]

Future< detail::ResultOf< F, Future< void > && > > dispenso::Future< void >::then ( F &&  f,
Schedulable sched,
std::launch  asyncPolicy = kNotAsync,
std::launch  deferredPolicy = std::launch::deferred 
)
inline

Definition at line 387 of file future.h.

Friends And Related Symbol Documentation

◆ Future

template<typename R >
friend class Future
friend

Definition at line 410 of file future.h.

◆ make_ready_future

Future< void > make_ready_future ( )
friend

Make a Future<void> in a ready state.

Definition at line 595 of file future.h.


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