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

Method operator()

cpp/src/arrow/util/async_util_test.cc:450–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448 ExpensiveTask(bool* task_submitted, Future<> task)
449 : task_submitted(task_submitted), task(std::move(task)) {}
450 Result<Future<>> operator()() override {
451 *task_submitted = true;
452 return task;
453 }
454 int cost() const override { return kThrottleCapacity * 50; }
455 std::string_view name() const override { return kDummyName; }
456 bool* task_submitted;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected