MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

cpp/src/arrow/util/async_util.cc:431–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 WrapperTask(std::unique_ptr<Task> target, std::shared_ptr<State> state)
430 : target(std::move(target)), state(std::move(state)) {}
431 Result<Future<>> operator()() override {
432 ARROW_ASSIGN_OR_RAISE(Future<> inner_fut, (*target)());
433 return inner_fut.Then([state = std::move(state)]() {
434 if (--state->task_count == 0) {
435 return std::move(state->finish_cb)();
436 }
437 return Status::OK();
438 });
439 }
440 int cost() const override { return target->cost(); }
441 std::string_view name() const override { return target->name(); }
442 std::unique_ptr<Task> target;

Callers

nothing calls this directly

Calls 2

ThenMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected