| 716 | /// holding that error. |
| 717 | template <typename T> |
| 718 | static Future<T> DeferNotOk(Result<Future<T>> maybe_future) { |
| 719 | if (ARROW_PREDICT_FALSE(!maybe_future.ok())) { |
| 720 | return Future<T>::MakeFinished(std::move(maybe_future).status()); |
| 721 | } |
| 722 | return std::move(maybe_future).MoveValueUnsafe(); |
| 723 | } |
| 724 | |
| 725 | /// \brief Create a Future which completes when all of `futures` complete. |
| 726 | /// |