/// sugar for getTry().hasException()
bool hasException();
- /** A reference to the Try of the value */
- Try<T>& getTry();
-
/// If the promise has been fulfilled, return an Optional with the Try<T>.
/// Otherwise return an empty Optional.
/// Note that this moves the Try<T> out.
/* implicit */ SemiFuture(Future<T>&&) noexcept;
using Base::cancel;
- using Base::getTry;
using Base::hasException;
using Base::hasValue;
using Base::isActive;
/// exception).
T get(Duration dur) &&;
+ /// Block until the future is fulfilled, or until timed out. Returns the
+ /// Try of the value (moved out).
+ Try<T> getTry() &&;
+
/// Block until this Future is complete. Returns a reference to this Future.
SemiFuture<T>& wait() &;
Future& operator=(Future<T2>&&);
using Base::cancel;
- using Base::getTry;
using Base::hasException;
using Base::hasValue;
using Base::isActive;
/// exception).
T get(Duration dur);
+ /** A reference to the Try of the value */
+ Try<T>& getTry();
+
/// Block until this Future is complete. Returns a reference to this Future.
Future<T>& wait() &;