|
ORIGINAL
|
Represents a future result of an asynchronous computation. More...
#include <async.h>

Public Member Functions | |
| future (const future &)=delete | |
| future & | operator= (const future &)=delete |
| future (future &&)=default | |
| future & | operator= (future &&)=default |
| TYPE | result () |
| Gets the result (blocks until ready) | |
| bool | ready () const |
| Checks if the result is ready. | |
| std::exception_ptr | exception () const noexcept |
| Gets the exception if computation failed. | |
| void | wait () |
| Waits until the result becomes ready. | |
Friends | |
| class | async |
Represents a future result of an asynchronous computation.
| TYPE | The result type of the computation |
Provides access to the result of an asynchronous operation. The result can be retrieved only once.
|
noexcept |
Gets the exception if computation failed.
| bool original::async::future< TYPE >::ready | ( | ) | const |
Checks if the result is ready.
| TYPE original::async::future< TYPE >::result | ( | ) |
Gets the result (blocks until ready)
| std::exception | if the computation threw an exception |