ORIGINAL
Loading...
Searching...
No Matches
original::async::future< void > Class Reference

Specialization of future for void results. More...

#include <async.h>

Collaboration diagram for original::async::future< void >:
Collaboration graph

Public Member Functions

 future (const future &)=delete
 
futureoperator= (const future &)=delete
 
 future (future &&)=default
 
futureoperator= (future &&)=default
 
void result ()
 Waits for completion and checks for exceptions.
 
bool ready () const
 Checks if the computation is completed.
 
std::exception_ptr exception () const noexcept
 Gets the exception if computation failed.
 
void wait ()
 Waits until the computation completes.
 

Friends

class async
 

Detailed Description

Specialization of future for void results.

Member Function Documentation

◆ exception()

std::exception_ptr original::async::future< void >::exception ( ) const
inlinenodiscardnoexcept

Gets the exception if computation failed.

Returns
Exception pointer (nullptr if no exception)

◆ ready()

bool original::async::future< void >::ready ( ) const
inlinenodiscard

Checks if the computation is completed.

Returns
True if completed

◆ result()

void original::async::future< void >::result ( )
inline

Waits for completion and checks for exceptions.

Exceptions
std::exceptionif the computation threw an exception

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