MCPcopy Create free account
hub / github.com/apache/arrow / InitializeFromResult

Method InitializeFromResult

cpp/src/arrow/util/future.h:614–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

MakeFinishedMethod · 0.80

Calls 1

okMethod · 0.45

Tested by

no test coverage detected