MCPcopy Create free account
hub / github.com/apache/arrow / ~AsyncTaskGroupImpl

Method ~AsyncTaskGroupImpl

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

Source from the content-addressed store, hash-verified

412 : target_(target), state_(std::make_shared<State>(std::move(finish_cb))) {}
413
414 ~AsyncTaskGroupImpl() {
415 if (--state_->task_count == 0) {
416 Status st = std::move(state_->finish_cb)();
417 if (!st.ok()) {
418 // We can't return an invalid status from the destructor so we schedule a dummy
419 // failing task
420 target_->AddSimpleTask([st = std::move(st)]() { return st; },
421 "failed_task_reporter"sv);
422 }
423 }
424 }
425
426 bool AddTask(std::unique_ptr<Task> task) override {
427 state_->task_count++;

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected