| 260 | bool Wait(double seconds); |
| 261 | template <typename ValueType> |
| 262 | Result<ValueType>* CastResult() const { |
| 263 | return static_cast<Result<ValueType>*>(result_.get()); |
| 264 | } |
| 265 | |
| 266 | using Callback = internal::FnOnce<void(const FutureImpl& impl)>; |
| 267 | void AddCallback(Callback callback, CallbackOptions opts); |