|
ORIGINAL
|
Specialization of future for void results. More...
#include <async.h>


Public Member Functions | |
| future (const future &)=delete | |
| future & | operator= (const future &)=delete |
| future (future &&)=default | |
| future & | operator= (future &&)=default |
| bool | valid () const noexcept override |
| Checks if the future is valid (has an associated async wrapper) | |
| sharedFuture< void > | share () |
| Converts this future to a shared future. | |
| void | result () |
| Waits for completion and checks for exceptions. | |
| bool | ready () const override |
| Checks if the computation is completed. | |
| std::exception_ptr | exception () const noexcept override |
| Gets the exception if computation failed. | |
| void | wait () const override |
| Waits until the computation completes. | |
| bool | waitFor (time::duration timeout) const override |
| Waits for the result with a timeout. | |
Friends | |
| class | async |
Specialization of future for void results.
|
inlineoverridevirtualnoexcept |
Gets the exception if computation failed.
Implements original::async::futureBase.
|
inlineoverridevirtual |
Checks if the computation is completed.
Implements original::async::futureBase.
|
inline |
Waits for completion and checks for exceptions.
| std::exception | if the computation threw an exception |
|
inline |
Converts this future to a shared future.
|
inlineoverridevirtualnoexcept |
Checks if the future is valid (has an associated async wrapper)
Implements original::async::futureBase.
|
inlineoverridevirtual |
Waits until the computation completes.
Implements original::async::futureBase.
|
inlineoverridevirtual |
Waits for the result with a timeout.
| timeout | Maximum time to wait |
Implements original::async::futureBase.