| 612 | |
| 613 | protected: |
| 614 | void InitializeFromResult(Result<ValueType> res) { |
| 615 | if (ARROW_PREDICT_TRUE(res.ok())) { |
| 616 | impl_ = FutureImpl::MakeFinished(FutureState::SUCCESS); |
| 617 | } else { |
| 618 | impl_ = FutureImpl::MakeFinished(FutureState::FAILURE); |
| 619 | } |
| 620 | SetResult(std::move(res)); |
| 621 | } |
| 622 | |
| 623 | void Initialize() { impl_ = FutureImpl::Make(); } |
| 624 |