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

More...

#include <future.h>

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

Public Member Functions

 Future () noexcept
 
 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)
 
void get () const
 

Friends

Future< void > make_ready_future ()
 

Detailed Description

Definition at line 359 of file future.h.

Constructor & Destructor Documentation

◆ Future() [1/6]

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

Default constructor.

Definition at line 364 of file future.h.

◆ Future() [2/6]

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

Move constructor.

Definition at line 366 of file future.h.

◆ Future() [3/6]

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

Move constructor.

Definition at line 368 of file future.h.

◆ Future() [4/6]

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

Copy constructor.

Definition at line 370 of file future.h.

◆ Future() [5/6]

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

Copy constructor.

Definition at line 372 of file future.h.

◆ Future() [6/6]

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

Construct with callable and schedulable.

See also
Future<Result>::Future(F&&, Schedulable&, std::launch, std::launch)

Definition at line 377 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 405 of file future.h.

Friends And Related Symbol Documentation

◆ Future

template<typename R >
friend class Future
friend

Definition at line 434 of file future.h.

◆ make_ready_future

Future< void > make_ready_future ( )
friend

Make a Future<void> in a ready state.

Definition at line 619 of file future.h.


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