|
| | RADFutureT ()=default |
| | Creates an invalid future. More...
|
| |
| | RADFutureT (std::shared_ptr< std::shared_future< T >> future) |
| | Wraps an existing shared future. More...
|
| |
| bool | isValid () const |
| | Returns true when a future is present. More...
|
| |
| bool | isFinished () const |
| | Returns true when the result is ready. More...
|
| |
| void | wait () const |
| | Blocks until the result is ready. More...
|
| |
| T | result () const |
| | Returns the result, rethrowing any task exception. More...
|
| |
| T | resultOr (T defaultValue) const |
| | Returns result or defaultValue if not ready or failed. More...
|
| |
| template<typename F > |
| void | then (EventLoop &loop, F &&continuation) const |
| | Posts continuation to loop after this future completes. More...
|
| |
template<typename T>
class RADCore::RADFutureT< T >
Typed shared future with optional continuation support.